Skip to content

tomasbonco/paths-tree-unist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

paths-tree-unist

I made this package, because I've seen a few solutions but none of them was universal enough. So this:

  • uses unist tree data structure (so you can use unist tools to traverse/modify it),
  • a node can contain multiple segments of the path,
  • allows to store custom data for any segment of the path,
  • has advanced logic for opening/closing the folders,
  • ES6 compatible module (provides also version for node).

So whether you are creating a simple tree representation, or VS Code's like advanced file browser this should help you a lot.

Parser

Can be used with as unist parser.

Manager

Class providing everything most user will need.

Currently under development/testing. Pretty stable. Currently, please check the unit tests to see how to use it.

About

Unist compatible paths-to-tree parser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published