Socket
Socket
Sign inDemoInstall

browser-history

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    browser-history

simple functional wrapper around the browser history API


Version published
Weekly downloads
135
decreased by-12.34%
Maintainers
1
Install size
3.80 kB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 16 Sep 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc