Turn your filesystem hierarchy into an object.
Want to see pretty graphs? Log in now!
npm install fsobj
|5||downloads in the last week|
|20||downloads in the last month|
|Last Published By|
|Version||1.0.4 last updated a year ago|
|Keywords||fs, filesystem, view|
Have your filesystem hierarchy as an object hierarchy. fsobj returns an object with getters that return file contents for files and fsobjs for directories. Files are read as UTF-8, synchronously. It can optionally strip file extensions.
pathname is the directory that is the root of the fsobj. ext is an optional extension to strip from filenames.