Files
bake/contrib/bake-vscode/node_modules/mem-fs-editor/lib/actions/extend-json.js
T
2019-09-17 13:20:42 -04:00

11 lines
291 B
JavaScript

'use strict';
var extend = require('deep-extend');
module.exports = function (filepath, contents, replacer, space) {
var originalContent = this.readJSON(filepath, {});
var newContent = extend({}, originalContent, contents);
this.writeJSON(filepath, newContent, replacer, space);
};