Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    hadron-app-registrypublic

    hadron-app-registry

    Hadron App Registry

    Installation

    npm install --save hadron-app-registry
    

    Usage

    const AppRegistry = require('hadron-app-registry');
     
    var registry = new AppRegistry();
     
    registry.registerAction('Action::MyAction', action);
    registry.registerComponent('Component::MyComponent', component);
    registry.registerStore('Store::MyStore', store);
     
    registry.actions; //=> { 'Action::MyAction': action }
    registry.components; //=> { 'Component::MyComponent': component }
    registry.stores; //=> { 'Store::MyStore':: store }
     
    registry.getAction('Action::MyAction'); //=> action
    registry.getComponent('Component::MyComponent'); //=> component
    registry.getStore('Store::MyStore'); //=> store
     
    registry.deregisterAction('Action::MyAction');
    registry.deregisterComponent('Component::MyComponent');
    registry.deregisterStore('Store::MyStore');

    License

    Apache 2.0

    Keywords

    install

    npm i hadron-app-registry

    Downloadsweekly downloads

    59

    version

    7.1.0

    license

    Apache-2.0

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar