You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

history-extra

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

history-extra

Extra functionality for the history module


Version published
Weekly downloads
3.1K
decreased by-19.13%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

v5.0.1 (3 June 2019)

Readme

Source

history-extra

Extra functionality for the history module.

Build Status GitHub license Coverage npm Project Status

Usage

yarn add history history-extra

history is a peer dependency, and must be installed along side history-extra.

Versions

The version of the history module you're using will determine which version of history-extra you should use. See the table below to find the version you need.

historyhistory-extra
4.7.x4.x
4.8.0+5.x

Methods

createHashStateHistory

import { createHashStateHistory } from 'history-extra';

Works the same way that createHashHistory in history works, except that it supports browser history and pushState.

Development

Scripts

There are several scripts available to check and test the code. The CI will run them too, but they're also helpful for running locally. All of these are launched with npm run <script> or yarn run <script>.

scriptdescription
lintRuns linter on the code to catch syntax and other issues.
buildRuns the build, producing the output in dist.
testRuns the tests in a local browser (Chrome and Firefox).

Environment Variables

There are some ENV args that make things nice for development.

argdescription
DEVBoolean, useful for tests. Puts karma in watch mode and will re-run tests every time you save a change.
TRAVISBoolean, used by the CI. Also useful for running your tests on Sauce Labs instead of just locally.
KARMA_LAUNCHERSUseful for controlling which launchers to use, as a comma-separated list. Local options are Chrome and Firefox. If TRAVIS is truthy, options are SL_Explorer, SL_Chrome, SL_Firefox, and SL_Safari.
Thanks

Cross-browser Testing Platform and Open Source <3 Provided by Sauce Labs

Testing Provided by Sauce Labs

License

MIT © w33ble

FAQs

Package last updated on 03 Jun 2019

Did you know?

Socket

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
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc