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

By example: `const tree = dirTree("/home/*/");`

Hi, first of all I want to thank you, because for parts of a similar library I have done I took inspiration by your json result In my implementation, [dree](https://www.npmjs.com/package/dree)...

I have opened a similar issue of a feature request (issue #101), related to other functionalities that could be taken by [dree](https://www.npmjs.com/package/dree) In this case, I would point out that...

I am thinking about making a pr for adding some sort options ,e.g. sort by date or maybe sort by name(which most of the times happens but due to this...

I am trying to filter files with multiple extensions like filename.info.mp3. I have tried `extensions: /\.(info|mp3)$/ ` but this just brings all files that have one or both of those...

Please forgive me for this question, but I literally just started looking into node.js and NPM the directory tree > JSON is exactly what i need for a project at...

Hi would this feature supported in future? for example, filter out all the file not matching the regex

The README says: "The callback function takes the directory item (has path, name, size, and extension) and an instance of [node path](https://nodejs.org/api/path.html) and an instance of [node FS.stats](https://nodejs.org/api/fs.html#fs_class_fs_stats)." However, the...

Thanks for creating this package which works great! Is a search-function in the pipeline? Could be something like this: .search("search_for_this_string", nodeArray[]): nodes[]

Added option "recursionDepth" to limit the depth the directory-tree is searched. Noticed this when i tried to read DS-18b20 temperature sensor that for some reason /sys/bus/w1/devices has a endless recursive...