Merge pull request #931 from nainardev/patch-1

Yarn instructions
This commit is contained in:
Matthew Riley MacPherson 2020-02-10 20:54:12 +00:00 committed by GitHub
commit edc0eb366d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,8 +31,8 @@ localForage includes a localStorage-backed fallback store for browsers with no I
# Install via npm:
npm install localforage
# Or with bower:
bower install localforage
# Or, with yarn:
yarn add localforage
```
```html
@ -40,7 +40,7 @@ bower install localforage
<script>console.log('localforage is: ', localforage);</script>
```
To use localForage, [download the latest release](https://github.com/mozilla/localForage/releases) or install with [npm](https://www.npmjs.org/) (`npm install localforage`) or [bower](http://bower.io/) (`bower install localforage`).
To use localForage, [download the latest release](https://github.com/mozilla/localForage/releases) or install with [npm](https://www.npmjs.org/) (`npm install localforage`) or [yarn](http://yarnpkg.com/) (`yarn add localforage`).
Then simply include the JS file and start using localForage: `<script src="localforage.js"></script>`. You don't need to run any init method or wait for any `onready` events.