{"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":"http://registry-npm.ywwl.com/is-registered/download/is-registered-0.1.4.tgz","integrity":"sha512-2QKtmeD9MlH9hWHbX6wTy3FQlwg4tU6nGGE6SIlfzlKg+j7MUEG3H/CEl7qCp24Sw0XpuytnX3zHuRwnyL9hXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwpPgC1thMFWsC9HKZxQMqqrIvPBMQ3Si0vLBJY5736gIhANrRvBzQp8ZoiV/L9X8e0wM8lnxHnpmDNm4/iNA8jE1D"}],"size":2368,"noattachment":false,"key":"/is-registered/-/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":{},"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._","publish_time":1463495562829,"_cnpm_publish_time":1463495562829,"dist-tags":{"latest":"0.1.5"}}