MCPcopy Create free account
hub / github.com/Hashnode/starter-kit / pipe

Function pipe

packages/utils/renderer/markdownToHtml.ts:92–94  ·  view source on GitHub ↗
(...fns: any[])

Source from the content-addressed store, hash-verified

90
91const pipe =
92 (...fns: any[]) =>
93 (x: any) =>
94 fns.reduce((v, f) => f(v), x);
95
96export const markdownToHtml = (contentMarkdown: string) => {
97 const content = pipe(

Callers 1

markdownToHtmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected