Neglected Parking Meter

    browser-history

    1.0.1 • Public • Published

    browser-history

    simple functional wrapper around the browser history API

    Install

    npm install browser-history

    Documentation

    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 test

    License

    MIT

    Keywords

    none

    Install

    npm i browser-history

    DownloadsWeekly Downloads

    969

    Version

    1.0.1

    License

    none

    Last publish

    Collaborators

    • mattmueller