2.0.1 • Published 6 years ago
directory-to-plain-text v2.0.1
Transpile directory to one file
you can transform directory to one - portable - json file
API usage
const dtp = require('directory-to-plain-text');
let compressed = dtp.pack('name of directory');
// ...
dtp.unpack(compressed);
// or
dtp.unpack(compressed, 'folderToUnpack');
CLI usage
directory-pack directory > file.json
directory-unpack file.json whereUnpack
//or shortcut version
d-pack directory > file.json
d-unpack file.json whereUnpack