0.6.0 • Published 10 years ago
chronicler v0.6.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.