fs-safe-replace.js/test.js

12 lines
301 B
JavaScript
Raw Normal View History

2015-07-17 23:07:02 +00:00
'use strict';
var safeReplace = require('./').create();
//var safeReplace = require('safe-replace').create();
var fs = require('fs');
safeReplace.writeFile('keep.txt', 'my precious').then(function () {
2015-12-15 06:07:54 +00:00
fs.readdir('.', function (err, nodes) {
2015-07-17 23:07:02 +00:00
console.log('file system nodes', nodes);
});
});