mirror of
https://github.com/kennethreitz/bake.git
synced 2026-06-05 23:00:17 +00:00
11 lines
291 B
JavaScript
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);
|
|
};
|