Small browser history library. Although you might as well just use the native DOM API (read the source and decide for yourself).
var nanohistory = require('nanohistory')
nanohistory(function (location) {
console.log('new location is', location)
})
// Trigger the history API a couple of times
window.history.pushState({}, null, '/foo')
window.history.pushState({}, null, '/bar')
Register a new history API listener. This will fire whenever the history API is triggered.