sane-scaffold
Sane composable filesystem scaffolding.
Code that looks like this
var scaffold = ; scaffold start'/usr/local/lets-do-this' ;
Ends up creating a directory structure that looks like this
/usr/local/lets-do-this|empty-directory|put-things-inside-me -|im-a-subdirectory -|directoryception -files-inside-directories.ext-files-are-simple.txt
Basic Usage
#directory(name, next)
var scaffold = base; // Start scaffolding from a path base = scaffoldstart'/some-path'; // creates /some-path/some-directory base; // Commands can be chained base ; // Creating subdirectories is easy base; // Optionally use done instead of callbacks base
#file(name, content, next)
var scaffold = base; // Start scaffolding from a path base = scaffoldstart'/some-path'; // Create /some-path/empty-file.txt base; // Create /some-path/empty-file.txt with 'now some content' as its contents base; // Chain commands base ; // wait for a write to finish base; base ;