{"_id":"boson","_rev":"14-78df98eae18f237a4c91928f98420500","name":"boson","time":{"modified":"2022-06-13T04:58:28.000Z","created":"2014-03-05T01:57:37.089Z","0.1.0":"2014-03-05T01:57:37.089Z","0.1.1":"2014-03-05T01:59:34.731Z","0.1.2":"2014-03-06T18:56:24.130Z","0.2.0":"2014-06-15T07:16:53.380Z","0.3.0":"2014-08-13T05:52:27.390Z"},"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.","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._","maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist-tags":{"latest":"0.3.0"},"versions":{"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","tarball":"https://registry.npmjs.org/boson/-/boson-0.1.1.tgz","integrity":"sha512-tdES/j78fohcmJTykTzJKVxcHyQ8HTOV9NHRwq8fXWsiCA2NxLalqpvCQiNYHu80uZ2ONTn6ygUQt8PTQdzgsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMou20vQ2QhwoaUjX+ufknBbSZrKo2SXfIQS2RPtdb0gIhAMX4FBA7i7HJjEDM6ZE18OBuvh8nLOhNpDfr7M5ayg6c"}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}]},"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","tarball":"https://registry.npmjs.org/boson/-/boson-0.1.2.tgz","integrity":"sha512-IfQV3bqIIYPVdMXzf5eQElvLC+PJ368vdMYkIlS5Sw+BVkGwIUfSKkr2baKG7K4zPvMqtz+TLT3osWijGYzKtw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZBOpjrW25iCfYXXQxNIZhOahhlK9cAJc3L4IXI7wu9AIhAN+lEfwX31ACKYmPjUauLhNwb5QRn6T5g1ImTHuhzoM9"}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}]},"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","tarball":"https://registry.npmjs.org/boson/-/boson-0.2.0.tgz","integrity":"sha512-e8G8AaPqBCnUa1Qep9dGMPk9RgSVzjO98n55T4bYmr3KiTpky1xrpfHR4QFB9NaWoFtmvdBonqtN8jRUdA7gKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4Bs9LP+k8tJmIVA0ZkkNMH2yXZWeRanNgMOkSGkzKswIgePDQl8S3oc15uKJB6ki10tXvjes4YzNl1OeVXdN8OY8="}]}},"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","tarball":"https://registry.npmjs.org/boson/-/boson-0.3.0.tgz","integrity":"sha512-SfJPYjxjCdAm1kH9q0SWMaotvilSvj1kPUh4sPIaUoUUxjujwszZuqFs9MMjbHazD3ACPI0MzuvXe3ZNyjqHuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH4qtoaoHlB3X0GtSfNtAviQV/p6dixwFitz59MzZUPGAiEAjjsBo/DZaLbtGSsfudLKtn+SWV8dDwutJUFdzvireTc="}]}}},"homepage":"https://github.com/jonschlinkert/boson","repository":{"type":"git","url":"https://github.com/jonschlinkert/boson"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"bugs":{"url":"https://github.com/jonschlinkert/boson/issues"},"readmeFilename":"README.md","users":{"jonschlinkert":true},"keywords":["engine","engines","find","fn","function","functions","helper","helpers","imports","middleware","middlewares","module","modules","plugin","plugins","register","require","resolve","templates"]}