directory-to-plain-text

2.0.1 • Public • Published

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

Package Sidebar

Install

npm i directory-to-plain-text

Weekly Downloads

1

Version

2.0.1

License

ISC

Unpacked Size

5.14 kB

Total Files

8

Last publish

Collaborators

  • milesq