{"_id":"boson","_rev":"87918","name":"boson","description":"Use glob patterns to load an array of requireable files or npm modules - like plugins or middleware, optionally passing a config object to each module.","dist-tags":{"latest":"0.3.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:28:34.000Z","created":"2014-03-05T01:59:34.731Z","0.3.0":"2014-08-13T05:52:27.390Z","0.2.0":"2014-06-15T07:16:53.380Z","0.1.2":"2014-03-06T18:56:24.130Z","0.1.1":"2014-03-05T01:59:34.731Z"},"users":{"jonschlinkert":true},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/boson"},"versions":{"0.3.0":{"name":"boson","version":"0.3.0","description":"Use glob patterns to load an array of requireable files or npm modules - like plugins or middleware, optionally passing a config object to each module.","homepage":"https://github.com/jonschlinkert/boson","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/boson"},"bugs":{"url":"https://github.com/jonschlinkert/boson/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/boson/blob/master/LICENSE-MIT"}],"main":"index.js","scripts":{"test":"node test/test.js"},"dependencies":{"resolve-dep":"^0.5.0"},"devDependencies":{"chai":"^1.9.1","mocha":"^1.20.1","node-bar":"^0.2.0","node-baz":"^0.1.0","node-foo":"^0.2.1","verb":"^0.2.13","verb-tag-jscomments":"^0.2.0"},"keywords":["engine","engines","find","fn","function","functions","helper","helpers","imports","middleware","middlewares","module","modules","plugin","plugins","register","require","resolve","templates"],"_id":"boson@0.3.0","_shasum":"43cec1d726c8cf83e0bae90232a60cd3b2de728d","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"43cec1d726c8cf83e0bae90232a60cd3b2de728d","size":4449,"noattachment":false,"key":"/boson/-/boson-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/boson/download/boson-0.3.0.tgz"},"directories":{},"publish_time":1407909147390,"_cnpm_publish_time":1407909147390,"_hasShrinkwrap":false},"0.2.0":{"name":"boson","version":"0.2.0","description":"Use glob patterns to load an array of requireable files or npm modules - like plugins or middleware, optionally passing a config object to each module.","homepage":"https://github.com/jonschlinkert/boson","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/boson"},"bugs":{"url":"https://github.com/jonschlinkert/boson/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/boson/blob/master/LICENSE-MIT"}],"main":"index.js","scripts":{"test":"node test/test.js"},"dependencies":{"resolve-dep":"^0.3.4"},"devDependencies":{"chai":"^1.9.1","mocha":"^1.20.1","node-bar":"^0.2.0","node-baz":"^0.1.0","node-foo":"^0.2.1","verb":"^0.2.13","verb-tag-jscomments":"^0.1.2"},"keywords":["require","middleware","middlewares","plugin","plugins","function","module","modules"],"_id":"boson@0.2.0","_shasum":"1bef38e968fc66a65c8e308997de58a335ef4541","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"1bef38e968fc66a65c8e308997de58a335ef4541","size":4466,"noattachment":false,"key":"/boson/-/boson-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/boson/download/boson-0.2.0.tgz"},"directories":{},"publish_time":1402816613380,"_cnpm_publish_time":1402816613380,"_hasShrinkwrap":false},"0.1.2":{"name":"boson","version":"0.1.2","description":"Normalize config for requireable modules.","homepage":"https://github.com/jonschlinkert/boson","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/boson"},"bugs":{"url":"https://github.com/jonschlinkert/boson/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/boson/blob/master/LICENSE-MIT"}],"main":"index.js","scripts":{"test":"node test/test.js"},"dependencies":{"lodash":"~2.4.1","fs-utils":"~0.3.6"},"devDependencies":{"node-foo":"~0.1.0","node-bar":"~0.1.0","node-baz":"~0.1.0"},"_id":"boson@0.1.2","dist":{"shasum":"bb86a9083a9c3ec3449ab24dfa0846337dfb0e87","size":3320,"noattachment":false,"key":"/boson/-/boson-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/boson/download/boson-0.1.2.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1394132184130,"_cnpm_publish_time":1394132184130,"_hasShrinkwrap":false},"0.1.1":{"name":"boson","version":"0.1.1","description":"Normalize config for requireable modules.","homepage":"https://github.com/jonschlinkert/boson","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/boson"},"bugs":{"url":"https://github.com/jonschlinkert/boson/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/boson/blob/master/LICENSE-MIT"}],"main":"index.js","dependencies":{"lodash":"~2.4.1","fs-utils":"~0.3.6"},"devDependencies":{"node-foo":"~0.1.0","node-bar":"~0.1.0"},"_id":"boson@0.1.1","dist":{"shasum":"7c9e358dd039e5dc4fd9c971100968ef11db9447","size":3159,"noattachment":false,"key":"/boson/-/boson-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/boson/download/boson-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1393984774731,"_cnpm_publish_time":1393984774731,"_hasShrinkwrap":false}},"readme":"# boson [![NPM version](https://badge.fury.io/js/boson.png)](http://badge.fury.io/js/boson)\n\n> Use glob patterns to load an array of requireable files or npm modules - like plugins or middleware, optionally passing a config object to each module.\n\n## Install\nInstall with [npm](npmjs.org):\n\n```bash\nnpm i boson --save-dev\n```\n\n## API\n### resolve\n\nBoson <https://github.com/jonschlinkert/boson>\n\n\nCopyright (c) 2014 Jon Schlinkert, contributors.\nLicensed under the MIT license.\n\n\n### boson\n\nUses a simple `require` on each module found and attempts to pass a config object is one is specified, returning an array of functions or objects exported from local or named npm modules. Wildcard (glob) patterns may be used.\n\n* `patterns` **{Array|String}**: Glob patterns, file paths or named npm modules.\n* `config` **{Object}**: Optional config object to pass to each function.\n* `options` **{Object}**: Options to pass to resolve-dep.\n* returns: {Array}\n\n**Example**:\n\n```js\nboson('index.js', {foo: 'bar'}); // index.js file for boson\n//=> [ { [Function] find: [Function], register: [Function] } ]\n```\n\n\n### .find\n\nReturns an array of resolved filepaths for local or named npm modules. Wildcard (glob) patterns may be used.\n\n* `patterns` **{Array|String}**: Glob patterns, file paths or named npm modules.\n* `options` **{Object}**: Options to pass to resolve-dep.\n* returns: {Array}\n\n**Example**:\n\n_(Returned paths are shortened for example)_.\n\n```js\nboson.find('mocha');\n//=> ['~/boson/node_modules/mocha/index.js']\n\nboson.find(['mocha', '*.js']);\n//=> [ '~/boson/index.js', '~/boson/node_modules/mocha/index.js' ]\n\n// Optionally pass a config object\nboson.find(['mocha', '*.js'], {foo: 'bar'});\n//=> [ '~/boson/index.js', '~/boson/node_modules/mocha/index.js' ]\n```\n\n\n### .register\n\nUses a simple `require` on each module found, returning an array of functions or objects exported from local or named npm modules. Wildcard (glob) patterns may be used.\n\n* `patterns` **{Array|String}**: Glob patterns, file paths or named npm modules.\n* `options` **{Object}**: Options to pass to resolve-dep.\n* returns: {Array}\n\n**Example**:\n\n```js\nboson('index.js'); // index.js file for boson\n//=> [ { [Function] find: [Function], register: [Function] } ]\n```\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\nCopyright (c) 2014 Jon Schlinkert, contributors.\nReleased under the MIT license\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on August 13, 2014._","_attachments":{},"homepage":"https://github.com/jonschlinkert/boson","bugs":{"url":"https://github.com/jonschlinkert/boson/issues"}}