MCPcopy
hub / github.com/apify/crawlee / makeJSON

Function makeJSON

test/utils/extract-urls.test.ts:51–55  ·  view source on GitHub ↗
({ string, array }: { string: string; array: string[] })

Source from the content-addressed store, hash-verified

49 };
50
51 const makeJSON = ({ string, array }: { string: string; array: string[] }) =>
52 JSON.stringify({
53 one: [{ http: string }],
54 two: array.map((url) => ({ num: 123, url })),
55 });
56
57 const makeCSV = (array: string[], delimiter?: string) =>
58 array.map((url) => ['ABC', 233, url, '.'].join(delimiter || ',')).join('\n');

Callers 1

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…