MCPcopy Index your code
hub / github.com/mathiasbynens/he / writeJSON

Function writeJSON

scripts/process-data.js:85–91  ·  view source on GitHub ↗
(fileName, object)

Source from the content-addressed store, hash-verified

83});
84
85const writeJSON = function(fileName, object) {
86 const json = jsesc(object, {
87 'compact': false,
88 'json': true
89 });
90 fs.writeFileSync(fileName, json + '\n');
91};
92
93writeJSON('data/decode-map.json', sortObject(decodeMap));
94writeJSON('data/decode-map-legacy.json', sortObject(decodeMapLegacy));

Callers 1

process-data.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected