Build object with all files in a directory
$ npm install --save build-prototype
// ./methods/hello.js
module.exports = function hello(){
return 'hello';
}// ./test.js
var build = require('build-prototype');
var myObj = {}
build(myObj, path.resolve('./methods'))
myObj.hello() === 'hello' // TrueMIT © Arnaud Dezandee