npm.io
0.6.0 • Published 11 years ago

chronicler

Licence
MIT
Version
0.6.0
Deps
1
Vulns
0
Weekly
0

Chronicler

A simple wrapper around onhashchange events that works great together with routine.

var hash = chronicler();
hash.on("change", function(fragment) {
    console.log(fragment); //=> "some/url"
});

hash.start();

window.location.hash = "some/url";

Installation

npm install chronicler

Or download from dist folder.