1.0.0 • Published 12 months ago
@qingtingnpm/dir_to_json v1.0.0
Convert the directory structure to JSON, or Generate a directory tree as a string tree.
example:
const dTj = require('dir_to_json');
console.log(JSON.stringify(dTj.dirToJson('.')));
console.log(dTj.generateTree('.'));
1.0.0
12 months ago