{"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","tarball":"http://registry-npm.ywwl.com/boson/download/boson-0.3.0.tgz","integrity":"sha512-SfJPYjxjCdAm1kH9q0SWMaotvilSvj1kPUh4sPIaUoUUxjujwszZuqFs9MMjbHazD3ACPI0MzuvXe3ZNyjqHuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH4qtoaoHlB3X0GtSfNtAviQV/p6dixwFitz59MzZUPGAiEAjjsBo/DZaLbtGSsfudLKtn+SWV8dDwutJUFdzvireTc="}],"size":4449,"noattachment":false,"key":"/boson/-/boson-0.3.0.tgz"},"directories":{},"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._","publish_time":1407909147390,"_cnpm_publish_time":1407909147390,"dist-tags":{"latest":"0.3.0"}}