{"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":"http://registry-npm.ywwl.com/is-registered/download/is-registered-0.1.0.tgz","integrity":"sha512-yG6FsdaUVCvP9UFmMfZIXgguvq6F64/DmT4+252SRdKQ+tiiAazKEqc5qI1QwmKSOYk1qiICNPXrQCS7+agpRQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGsKdUc8VEJaUABNN9d+tPijLcZ8fKBZ5pDUZAsF91eeAiEAkurj4ATt2LHwHYw4Qb3J0hLPdEWVB5DbshrE3ykWsUE="}],"size":2279,"noattachment":false,"key":"/is-registered/-/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":{},"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":1463292130064,"_cnpm_publish_time":1463292130064,"dist-tags":{"latest":"0.1.5"}}