1 | ;
|
2 |
|
3 | var extend = require('deep-extend');
|
4 |
|
5 | module.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 | };
|