{"_id":"is-registered","_rev":"51492","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"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:15:42.000Z","created":"2016-05-15T06:02:10.064Z","0.1.5":"2016-06-03T04:02:11.557Z","0.1.4":"2016-05-17T14:32:42.829Z","0.1.3":"2016-05-15T06:52:54.409Z","0.1.2":"2016-05-15T06:18:32.491Z","0.1.1":"2016-05-15T06:15:34.812Z","0.1.0":"2016-05-15T06:02:10.064Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-registered.git"},"versions":{"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","size":1568,"noattachment":false,"key":"/is-registered/-/is-registered-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-registered/download/is-registered-0.1.5.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-registered-0.1.5.tgz_1464926529243_0.38343830732628703"},"directories":{},"publish_time":1464926531557,"_cnpm_publish_time":1464926531557,"_hasShrinkwrap":false},"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","size":2368,"noattachment":false,"key":"/is-registered/-/is-registered-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-registered/download/is-registered-0.1.4.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/is-registered-0.1.4.tgz_1463495560391_0.8356419443152845"},"directories":{},"publish_time":1463495562829,"_cnpm_publish_time":1463495562829,"_hasShrinkwrap":false},"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","size":2355,"noattachment":false,"key":"/is-registered/-/is-registered-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-registered/download/is-registered-0.1.3.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/is-registered-0.1.3.tgz_1463295172461_0.11779219843447208"},"directories":{},"publish_time":1463295174409,"_cnpm_publish_time":1463295174409,"_hasShrinkwrap":false},"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","size":2336,"noattachment":false,"key":"/is-registered/-/is-registered-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-registered/download/is-registered-0.1.2.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/is-registered-0.1.2.tgz_1463293110489_0.12451794953085482"},"directories":{},"publish_time":1463293112491,"_cnpm_publish_time":1463293112491,"_hasShrinkwrap":false},"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","size":2355,"noattachment":false,"key":"/is-registered/-/is-registered-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-registered/download/is-registered-0.1.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-registered-0.1.1.tgz_1463292932160_0.37480859481729567"},"directories":{},"publish_time":1463292934812,"_cnpm_publish_time":1463292934812,"_hasShrinkwrap":false},"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","size":2279,"noattachment":false,"key":"/is-registered/-/is-registered-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-registered/download/is-registered-0.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-registered-0.1.0.tgz_1463292127972_0.6535523356869817"},"directories":{},"publish_time":1463292130064,"_cnpm_publish_time":1463292130064,"_hasShrinkwrap":false}},"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._","_attachments":{},"homepage":"https://github.com/jonschlinkert/is-registered","bugs":{"url":"https://github.com/jonschlinkert/is-registered/issues"},"license":"MIT"}