You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
252 B
9 lines
252 B
'use strict';
|
|
|
|
var DEFAULT_INDENTATION = 2;
|
|
|
|
module.exports = function (filepath, contents, replacer, space) {
|
|
var jsonStr = JSON.stringify(contents, replacer || null, space || DEFAULT_INDENTATION) + '\n';
|
|
|
|
return this.write(filepath, jsonStr);
|
|
};
|
|
|