@nichoth/router

    1.1.3 • Public • Published

    router

    Playing with client side routing again

    var App = require('../')
     
    var app = App({ hello: 'world' })
     
    app.route('/', function root (app) {
        return function onMatch (params) {
            console.log('hello', app.hello)
            console.log('params', params)
        }
    })
     
    app.route('/foo', function foo (app) {
        return function onMatch (params) {
            console.log('foo match', params)
        }
    })

    Install

    npm i @nichoth/router

    DownloadsWeekly Downloads

    19

    Version

    1.1.3

    License

    ISC

    Unpacked Size

    4.48 kB

    Total Files

    5

    Last publish

    Collaborators

    • nichoth