helm

A minimal hash router for browsers.

  • helm

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
helm
100.2.19 years ago10 years agoMinified + gzip package size for helm in KB

Readme

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