{"_id":"is-registered","_rev":"8-514f5856439cc3a401a2ea7d6db60574","name":"is-registered","description":"Util for Base that optionally prevents a plugin from being registered more than once on an instance","dist-tags":{"latest":"0.1.5"},"versions":{"0.1.0":{"name":"is-registered","description":"Util for Base that returns true if the given value is a base instance and the plugin is already registered on the instance.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/is-registered","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-registered.git"},"bugs":{"url":"https://github.com/jonschlinkert/is-registered/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"debug":"^2.2.0","gulp-format-md":"^0.1.9","isobject":"^2.1.0"},"devDependencies":{"base":"^0.8.1","gulp-format-md":"^0.1.9","mocha":"^2.4.5"},"keywords":["app","base","baseplugin","plugin","registered"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-plugins"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"d8f3fcdda7d3e3520d744bc0bf37d69928a76fb8","_id":"is-registered@0.1.0","_shasum":"b4e2dbcd8e8933ef6c7604b3ac7d68684d062b22","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"b4e2dbcd8e8933ef6c7604b3ac7d68684d062b22","tarball":"https://registry.npmjs.org/is-registered/-/is-registered-0.1.0.tgz","integrity":"sha512-yG6FsdaUVCvP9UFmMfZIXgguvq6F64/DmT4+252SRdKQ+tiiAazKEqc5qI1QwmKSOYk1qiICNPXrQCS7+agpRQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGsKdUc8VEJaUABNN9d+tPijLcZ8fKBZ5pDUZAsF91eeAiEAkurj4ATt2LHwHYw4Qb3J0hLPdEWVB5DbshrE3ykWsUE="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-registered-0.1.0.tgz_1463292127972_0.6535523356869817"}},"0.1.1":{"name":"is-registered","description":"Util for Base that optionally prevents a plugin from being registered more than once on an instance","version":"0.1.1","homepage":"https://github.com/jonschlinkert/is-registered","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-registered.git"},"bugs":{"url":"https://github.com/jonschlinkert/is-registered/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"debug":"^2.2.0","gulp-format-md":"^0.1.9","isobject":"^2.1.0"},"devDependencies":{"base":"^0.8.1","gulp-format-md":"^0.1.9","mocha":"^2.4.5"},"keywords":["app","base","baseplugin","plugin","registered"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-plugins"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"ad5e31cf699515c64f6ba257801a96dd4f46ecc3","_id":"is-registered@0.1.1","_shasum":"5a7b4571e0030346ffc92d55a054d6f92888dd4b","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"5a7b4571e0030346ffc92d55a054d6f92888dd4b","tarball":"https://registry.npmjs.org/is-registered/-/is-registered-0.1.1.tgz","integrity":"sha512-iHwP5LcMOtFYRfmPYXm5aMm1KsFEC76TC+v67fVx8xJtZqZfi0qJyrBsSRwQA27jVTNUs9haL952yNVui+CHZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICFts0hIAvVBc0TO4XZMKosJOJSuhnkLZFhKt1UM8NhlAiAruzHHsrYlNl6arpnuBUL1ZlUWAeFU2ogDUunyvNrnvg=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-registered-0.1.1.tgz_1463292932160_0.37480859481729567"}},"0.1.2":{"name":"is-registered","description":"Util for Base that optionally prevents a plugin from being registered more than once on an instance","version":"0.1.2","homepage":"https://github.com/jonschlinkert/is-registered","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-registered.git"},"bugs":{"url":"https://github.com/jonschlinkert/is-registered/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"isobject":"^2.1.0"},"devDependencies":{"base":"^0.8.1","gulp-format-md":"^0.1.9","mocha":"^2.4.5"},"keywords":["app","base","baseplugin","plugin","registered"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-plugins"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"ad5e31cf699515c64f6ba257801a96dd4f46ecc3","_id":"is-registered@0.1.2","_shasum":"e9544ba97186467809395f93d6ec8c2af233b7cb","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"e9544ba97186467809395f93d6ec8c2af233b7cb","tarball":"https://registry.npmjs.org/is-registered/-/is-registered-0.1.2.tgz","integrity":"sha512-S7TuzosqlO/LiBdt8/hEu9r1pyUIj9HoxA1aqb0KDvfsXiIcGUdzJEo/YiTOqVug2hOBGcq9P4vGKFnCsEPEpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBr5bWjyMpehy/r2XfJQQGNxPWN/IwHeznQFtPAfIujgAiEA5SXIjf75+lqyu3g3b3fRfdLzY4MO07nxikYn3GaB3Xs="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/is-registered-0.1.2.tgz_1463293110489_0.12451794953085482"}},"0.1.3":{"name":"is-registered","description":"Util for Base that optionally prevents a plugin from being registered more than once on an instance","version":"0.1.3","homepage":"https://github.com/jonschlinkert/is-registered","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-registered.git"},"bugs":{"url":"https://github.com/jonschlinkert/is-registered/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"isobject":"^2.1.0"},"devDependencies":{"base":"^0.8.1","gulp-format-md":"^0.1.9","mocha":"^2.4.5"},"keywords":["app","base","baseplugin","plugin","registered"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-plugins"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"77ab9dea5fd817af08360f4d689eda587ce3750e","_id":"is-registered@0.1.3","_shasum":"cf5fc164f9766b1507c68e1c6bd35cd560bff994","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"cf5fc164f9766b1507c68e1c6bd35cd560bff994","tarball":"https://registry.npmjs.org/is-registered/-/is-registered-0.1.3.tgz","integrity":"sha512-zeOzmGMEurC5RK9GIokgaHee/xEE/yBP/j8VA/6fvXQTWV8qPxvFQbqDNx1U2eXFDunRYVf3QrunK8MwdtrIlA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBw6mOuYWJ3Ac63016AlWT9gqrpQN/VrYcSS+ymmzVKzAiEAl0Uo8A9Da+2EdV2IO8qpOGcqyhA4f6QSYeIMXu5NjXE="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/is-registered-0.1.3.tgz_1463295172461_0.11779219843447208"}},"0.1.4":{"name":"is-registered","description":"Util for Base that optionally prevents a plugin from being registered more than once on an instance","version":"0.1.4","homepage":"https://github.com/jonschlinkert/is-registered","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-registered.git"},"bugs":{"url":"https://github.com/jonschlinkert/is-registered/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"isobject":"^2.1.0"},"devDependencies":{"base":"^0.8.1","gulp-format-md":"^0.1.9","mocha":"^2.4.5"},"keywords":["app","base","baseplugin","plugin","registered"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-plugins"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"96f8cab50050f2f4e3e5f3e99a06d3e0ac252ee6","_id":"is-registered@0.1.4","_shasum":"f4af24ec4cbf6c03eaa8d15aa41c2299fb01cd47","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"f4af24ec4cbf6c03eaa8d15aa41c2299fb01cd47","tarball":"https://registry.npmjs.org/is-registered/-/is-registered-0.1.4.tgz","integrity":"sha512-2QKtmeD9MlH9hWHbX6wTy3FQlwg4tU6nGGE6SIlfzlKg+j7MUEG3H/CEl7qCp24Sw0XpuytnX3zHuRwnyL9hXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwpPgC1thMFWsC9HKZxQMqqrIvPBMQ3Si0vLBJY5736gIhANrRvBzQp8ZoiV/L9X8e0wM8lnxHnpmDNm4/iNA8jE1D"}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/is-registered-0.1.4.tgz_1463495560391_0.8356419443152845"}},"0.1.5":{"name":"is-registered","description":"Util for Base that optionally prevents a plugin from being registered more than once on an instance","version":"0.1.5","homepage":"https://github.com/jonschlinkert/is-registered","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-registered.git"},"bugs":{"url":"https://github.com/jonschlinkert/is-registered/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"define-property":"^0.2.5","isobject":"^2.1.0"},"devDependencies":{"base":"^0.8.1","gulp-format-md":"^0.1.9","mocha":"^2.4.5"},"keywords":["app","base","baseplugin","plugin","registered"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-plugins"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"fce4f064186b540d20db78aa0e055fe7a9554c6d","_id":"is-registered@0.1.5","_shasum":"1d346977419d665e2ac6c84013535685e6f76f7f","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"1d346977419d665e2ac6c84013535685e6f76f7f","tarball":"https://registry.npmjs.org/is-registered/-/is-registered-0.1.5.tgz","integrity":"sha512-dOOjAYNmKGtjoW229wn/SDmrO65oQcUvng9WUYF/AIZAQZG/l+puNUPt+/x7YCn4W9A33H6LItHgSETDmS0urg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMBxGGXqkR81iCB+WYj2ycMD4Nqgqn+2DLP/xa7IJI/AIgS6sqB/FsQaBrRb5k5WnsAJ++4msldRztnj/A89y6ohQ="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-registered-0.1.5.tgz_1464926529243_0.38343830732628703"}}},"readme":"# is-registered [![NPM version](https://img.shields.io/npm/v/is-registered.svg?style=flat)](https://www.npmjs.com/package/is-registered) [![NPM downloads](https://img.shields.io/npm/dm/is-registered.svg?style=flat)](https://npmjs.org/package/is-registered) [![Build Status](https://img.shields.io/travis/jonschlinkert/is-registered.svg?style=flat)](https://travis-ci.org/jonschlinkert/is-registered)\n\nUtil for Base that optionally prevents a plugin from being registered more than once on an instance\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install is-registered --save\n```\n\n## Usage\n\n* Returns `true` if `app` is a base instance and the named plugin is already registered on the instance.\n* Returns `true` if `app` is not an object\n* Returns `false` if `app` is a base instance and the plugin is not already registered on the instance\n\n```js\nvar isRegistered = require('is-registered');\n\nfunction plugin(app) {\n  if (isRegistered(app, 'base-foo')) return;\n  // do plugin stuff\n}\n```\n\n## Related projects\n\nYou might also be interested in these projects:\n\n[base-plugins](https://www.npmjs.com/package/base-plugins): Upgrade's plugin support in base applications to allow plugins to be called any time after… [more](https://www.npmjs.com/package/base-plugins) | [homepage](https://github.com/node-base/base-plugins)\n\n* [base](https://www.npmjs.com/package/base): base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting… [more](https://www.npmjs.com/package/base) | [homepage](https://github.com/node-base/base)\n\n## Contributing\n\nThis document was generated by [verb](https://github.com/verbose/verb), please don't edit directly. Any changes to the readme must be made in [.verb.md](.verb.md). See [Building Docs](#building-docs).\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/is-registered/issues/new).\n\n## Building docs\n\nGenerate readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-readme-generator && verb\n```\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\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\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/is-registered/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on June 03, 2016._","maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2022-06-19T02:49:28.193Z","created":"2016-05-15T06:02:10.064Z","0.1.0":"2016-05-15T06:02:10.064Z","0.1.1":"2016-05-15T06:15:34.812Z","0.1.2":"2016-05-15T06:18:32.491Z","0.1.3":"2016-05-15T06:52:54.409Z","0.1.4":"2016-05-17T14:32:42.829Z","0.1.5":"2016-06-03T04:02:11.557Z"},"homepage":"https://github.com/jonschlinkert/is-registered","keywords":["app","base","baseplugin","plugin","registered"],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-registered.git"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"bugs":{"url":"https://github.com/jonschlinkert/is-registered/issues"},"license":"MIT","readmeFilename":"README.md"}