open-index/open-npm huggingface dataset:
npm package: @nankle/h-cookie
Description: browser cookie, cookie, js-cookie
Author: hanxiaoxin
Latest version: 1.0.2

# 🚀 Hcookie for browser cookie!

inspire from js-cookie.

#### Usage:

API:

> set (key,value,property)  

property include expires, default expires is 24 hours.

> get (key)

cjs:

```javascript
var hCookie = require('@nankle/h-cookie');
hCookie.set('version','1.0', {expires: new Date().getTime() + 24*3600*1000});
hCookie.set('version','1.0');
hCookie.get('version');
```

esm:
```javascript
import hCookie from '@nankle/h-cookie';
hCookie.set('version','1.0');
hCookie.get('version');
```