Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

history-extra

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

history-extra

Extra functionality for the history module

  • 4.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.6K
decreased by-1.48%
Maintainers
1
Weekly downloads
 
Created
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 major version of history-extra should be compatible with the upstream history module with the same major version.

So far, it's only been tested with 4.7.0 and newer.

Methods

createHashStateHistory

import { createHashStateHistory } from 'history-extra';

Works the same way that createHashHistory in history works, except that it supports state.

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 16 Nov 2018

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc