@nichoth/router

Playing with client side routing again

Stats

StarsIssuesVersionUpdatedCreatedSize
@nichoth/router
001.1.33 years ago6 years agoMinified + gzip package size for @nichoth/router in KB

Readme

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)
    }
})

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.