Skip to content

Commit 34a25af

Browse files
Update README.md
1 parent 8b70250 commit 34a25af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

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

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

48+
#### CommonJS
49+
```javascript
50+
var Cookies = require('js-cookie');
51+
```
52+
4853
## Basic Usage
4954

5055
Create a cookie, valid across the entire site:

0 commit comments

Comments
 (0)