Skip to content

Commit a06b840

Browse files
Document ES6 Module Loader
Closes js-cookiegh-353.
1 parent a0012f2 commit a06b840

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ JavaScript Cookie supports [npm](https://www.npmjs.com/package/js-cookie) and [B
5151

5252
JavaScript Cookie can also be loaded as an AMD, CommonJS or [ES6](https://github.com/js-cookie/js-cookie/issues/233#issuecomment-233187386) module.
5353

54+
#### ES6
55+
56+
```javascript
57+
import Cookies from 'js-cookie';
58+
```
59+
5460
## Basic Usage
5561

5662
Create a cookie, valid across the entire site:

0 commit comments

Comments
 (0)