include-folder
Expose the content of each file in a folder as an object property.
Getting Started
Install the module with: npm install include-folder --save
The use like this:
var includeFolder = require('include-folder'),
folder = includeFolder("./aFolder");
Supposing that the content of aFolder was the same as in the sample in test
folder var will contains:
{
file3OtherFile: 'this is file3OtherContent content',
file1: 'this is file1 content',
file1_1: 'this is file1_1 content'
}
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style.
Add unit tests for any new or changed functionality.
License
Copyright (c) 2013 parroit
Licensed under the MIT license.