1.1.0 • Published 9 years ago

build-prototype v1.1.0

Weekly downloads
35
License
MIT
Repository
github
Last release
9 years ago

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