Write a representation of a directory to a JSON file. Small wrapper around directory-to-object.When parsing several directories of files it's nice to just have to provide a path rather than creating an index object manually. This is useful for creating static sites out of markdown files. Client-side projects can't call a read function dynamically however, so a static file must be created.
directory json write analyze walkAnalyze a directory structure and return a json representation. Expects a flat folder structure with either files or directories.When parsing several directories of files it's nice to just have to provide a path rather than creating an index object manually. This is useful for creating static sites out of markdown files.
directory analyze walk jsonReturns a Promise for either the project root path or null if it couldn't be found.Returns the project root path or null.
package json root npm entry find up find-up findup look-up look file search match resolve parent parents folder directory dir walk walking pathThis is like detective, but with a narrow focus and thin API, specifically aimed at supporting either import and/or require statements, and not much more.See Custom AST for details on parsing additional language syntax, such as JSX or async/await.
import cjs common js commonjs imports require requires detective node ast walk find module modulesRecursively walk and add extra information/helpers to Esprima / Mozilla SpiderMonkey Parser API compatible AST.The main difference between other tools is that it also keeps information about tokens and white spaces and it is meant to be used to transform the tokens and not the string values itself.
ast walk syntax source tree traversal falafel burrito esprimaThis module is a faster version of falafel that only does ast walking and .parent tracking, not source transforms.Return a walk() function from the source string or ast object src.
ast walk source acornasynchronously & recursively walk through an object, array or literal.uses wrapped to provide generator and promise support.
walk async recursive mapFlexible and fluent interface for searching the file system
file filesystem promise fluent-interface recursive search filehound hound lister find directory walk walker finder fs file-systemReturns a Promise for either the filepath or null if it couldn't be found.Returns a Promise for either the first filepath found (by respecting the order) or null if none could be found.
find up find-up findup look-up look file search match package resolve parent parents folder directory dir walk walking path
We have large collection of open source products. Follow the tags from
Tag Cloud >>
Open source products are scattered around the web. Please provide information
about the open source projects you own / you use.
Add Projects.