1.0.1 • Published 9 years ago
browser-history v1.0.1
browser-history
simple functional wrapper around the browser history API
Install
npm install browser-historyDocumentation
Go to a path
var history = require('browser-history')
history('/users')Listen for the back button
var history = require('browser-history')
history(function (e, url) {
// do something with the URL
})Go back
var history = require('browser-history')
history(-1)Test
npm testLicense
MIT