export-files
node.js utility for exporting a directory of files as modules.
Install
Install with npm
npm i export-files --save
Run tests
npm test
Usage
Given you have the following files:
lib/
foo.js
bar.js
baz.js
Add the following to lib/index.js
:
module.exports = require('export-files')(__dirname);
To only return modules in the immediate directory (e.g. don't recurse):
module.exports = require('export-files')(__dirname, false);
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert
Released under the MIT license
This file was generated by verb on November 15, 2014.