blob: 5f55fb2b3e57ae7591f1998082c4e674d5ef95fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Installation
The history library is published to the public [npm](https://www.npmjs.com/) registry. You can install it using:
$ npm install --save history
Then, use as you would anything else:
```js
// using ES6 modules
import { createBrowserHistory } from 'history';
// using CommonJS modules
var createBrowserHistory = require('history').createBrowserHistory;
```
## Using Globals
If you really just want a `<script>` tag, the UMD build is available on [unpkg](https://unpkg.com):
```html
<script src="https://unpkg.com/history"></script>
```
You can find the library on `window.History`.
|