fsep
Version:
Fsep is a library that promisifies the native node FS operation and brings extras into the mix.
22 lines (18 loc) • 342 B
JavaScript
const Path = require('path');
const Fsep = require('../index.js');
var path = Path.join(__dirname, 'rw');
var data = {
root: {
one: 'one.txt',
two: 'two.txt',
ar: [
'three.txt',
'four.txt'
]
}
};
Promise.resolve().then(function () {
return Fsep.scaffold(path, data);
}).catch(function (error) {
console.error(error);
});