next() Packaged Middleware
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    beaniepublic

    Example

        
    var beanie = require('beanie').loader();
     
    beanie.
    require(__dirname + "/path/to/plugin.js").
    require(__dirname + "/path/to/dir").
    require(__dirname + "/path/to/**/*.plugin.js").
    load(function() {
        beanie.router.push('init');
    })
     

    Plugin example:

     
    exports.plugin = function(router) {
        
     
        router.on({
            'push init': function() {
                //do something
            }
        })
    }
     

    Keywords

    none

    install

    npm i beanie

    Downloadsweekly downloads

    12

    version

    0.1.0

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar