1.0.0 • Published 11 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
11 months ago