ember-cli/ember-try

View on GitHub
test/helpers/write-json-file.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

const fs = require('fs-extra');

module.exports = function writeJSONFile(filename, contents) {
  fs.writeFileSync(filename, JSON.stringify(contents, null, 2));
};