Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

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');

Keywords

none

Install

npm i helm

DownloadsWeekly Downloads

112

Version

0.2.1

License

MIT

Last publish

Collaborators

  • avatar