build-prototype

1.1.0 • Public • Published

build-prototype Build Status

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

Package Sidebar

Install

npm i build-prototype

Weekly Downloads

5

Version

1.1.0

License

MIT

Last publish

Collaborators

  • adezandee