Export directories and their files as node.js modules.
npm i export-dirs --save
var dirs = ;
// all files and directories are flattened onto the `_` object_:z: Functiony: Functionx: Functionf: Functione: Functiond: Functioni: Functionh: Functiong: Functionc: Functionb: Functiona: Function// files in the same directory as export-dirsz: Functiony: Functionx: Function// folders in the same directory as export-dirstwo: f: Function e: Function d: Functionthree: i: Function h: Function g: Functionone: c: Function b: Function a: Function
(Note that export-dirs does not recurse).
- export-files: node.js utility for exporting a directory of files as modules.
- map-files: Return an object for a glob of files. Pass a
renamefunction for the keys, or a
parsefunction for the content, allowing it to be used for readable or require-able files.
- file-reader: Read a glob of files, dynamically choosing the reader or requiring the files based on the file extension.
Install dev dependencies.
npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb-cli on March 18, 2015.