1 | 'use strict';
|
2 |
|
3 | var DEFAULT_INDENTATION = 2;
|
4 |
|
5 | module.exports = function (filepath, contents, replacer, space) {
|
6 | var jsonStr = JSON.stringify(contents, replacer || null, space || DEFAULT_INDENTATION) + '\n';
|
7 |
|
8 | return this.write(filepath, jsonStr);
|
9 | };
|