Displaying 1 to 4 from 4 results

directory-to-json - Write a representation of a directory to a JSON file.


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-to-object - Asynchronously analyze a directory and return a json representation


Analyze 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.