node-directory-tree icon indicating copy to clipboard operation
node-directory-tree copied to clipboard

Convert a directory tree to a JS object.

Results 28 node-directory-tree issues
Sort by recently updated
recently updated
newest added

Current default output includes `type`, `size`, and `extension`. It is impossible to remove these attributes, though they are cluttering the JSON since they are unnecessary for my purposes. ``` const...

and option to sort by newest/oldest?

Hello, i got this error: "FS.statSync is not a function at directoryTree (directory-tree.js?1168:57)" upon debugging it comes from here: ``` function directoryTree (path, options, onEachFile, onEachDirectory) { const name =...

Thanks for this good package! In a directory, I only want first 10 files then what can i do for that?

I'm on macOs, node v12, directory-tree v2.2.4... When I try to create a directory tree by excluding the .git folder: `const tree = dirTree(rootPath, { exclude: [/.git/] }); console.log('tree is...

Minimal code change, optional `depth` option, new test and updated README.md 🙂 Fix #34

Don't forget to integrate in PR checks.

Added new option: maxDepth Now, we can pass option as 'maxDepth' with numerical value of upto how much depth tree traversal should be done and returned.

Hey i update the package from now on i get `TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default...

I generated an eslint config file out of the existing code style.