MCPcopy Create free account
hub / github.com/ember-cli/ember-try / writeJSONFile

Function writeJSONFile

test/helpers/write-json-file.js:3–5  ·  view source on GitHub ↗
(filename, contents)

Source from the content-addressed store, hash-verified

1import fs from 'fs-extra';
2
3export default function writeJSONFile(filename, contents) {
4 fs.writeFileSync(filename, JSON.stringify(contents, null, 2));
5}

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…