MCPcopy Create free account
hub / github.com/Kong/insomnia / writeJson

Function writeJson

scripts/plugins/generate-manifests.mjs:20–23  ·  view source on GitHub ↗
(file, data)

Source from the content-addressed store, hash-verified

18
19// Deliberately dependency-free (no prettier): the CI job that runs this has no node_modules installed.
20const writeJson = (file, data) => {
21 mkdirSync(path.dirname(file), { recursive: true });
22 writeFileSync(file, `${JSON.stringify(data, null, 2)}\n`);
23};
24
25const sourceOf = plugin => `./plugins/${plugin.name}`;
26

Callers 1

Calls 1

stringifyMethod · 0.80

Tested by

no test coverage detected