helm

0.2.1 • Public • Published

Helm: Minimal router for browsers.

Inspired by page.js, Helm is a client-side router that leverages the hash portion of URLs to do the routing.

Installation

npm install helm

Usage

var helm = require('helm');
var router = helm();
 
helm.on('/user/:username', function (context) {
  console.log(context.params.username);
});
 
helm.go('/user/jack');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.1
    1,327
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.1
    1,327
  • 0.2.0
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i helm

Weekly Downloads

1,327

Version

0.2.1

License

MIT

Last publish

Collaborators

  • iclanzan