UNPKG

291 BJavaScriptView Raw
1'use strict';
2
3var extend = require('deep-extend');
4
5module.exports = function (filepath, contents, replacer, space) {
6 var originalContent = this.readJSON(filepath, {});
7 var newContent = extend({}, originalContent, contents);
8
9 this.writeJSON(filepath, newContent, replacer, space);
10};