package
A minimal hash router for browsers.
npm install helmGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 2 packages.
59.0 kB
Includes dependencies.
Inspired by page.js, Helm is a client-side router that leverages the hash portion of URLs to do the routing.
npm install helmvar helm = require('helm');
var router = helm();
helm.on('/user/:username', function (context) {
console.log(context.params.username);
});
helm.go('/user/jack');