Package Exports
- is-registered
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-registered) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
is-registered

Util for Base that optionally prevents a plugin from being registered more than once on an instance
Install
Install with npm:
$ npm install is-registered --saveUsage
- Returns
trueifappis a base instance and the named plugin is already registered on the instance. - Returns
falseifappis not an object - Supports a custom function as the third argument
var isRegistered = require('is-registered');
function plugin(app) {
if (isRegistered(app, 'base-foo')) return;
// do plugin stuff
}Related projects
You might also be interested in these projects:
- base-plugins: Upgrade's plugin support in base applications to allow plugins to be called any time after… more | homepage
- base: base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting… more | homepage
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Building docs
Generate readme and API documentation with verb:
$ npm install verb && npm run docsOr, if verb is installed globally:
$ verbRunning tests
Install dev dependencies:
$ npm install -d && npm testAuthor
Jon Schlinkert
License
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb, v0.9.0, on May 15, 2016.