1.1.0 • Published 9 years ago
build-prototype v1.1.0
build-prototype
Build object with all files in a directory
Install
$ npm install --save build-prototype
Usage
// ./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' // True
License
MIT © Arnaud Dezandee