@deepjs/cookie

0.2.9 • Public • Published

cookie

底层为 js-cookie 独立包,无依赖,使用简单

使用

https://github.com/js-cookie/js-cookie

import { cookie } from '@deepjs/cookie'

cookie.set('name', 'cloudyan', { expires: 7, path: '' });
cookie.get('name');

setTimeout(() => {
  cookie.get('name');
  cookie.remove('name');
}, 6000);

Readme

Keywords

Package Sidebar

Install

npm i @deepjs/cookie

Weekly Downloads

1

Version

0.2.9

License

MIT

Unpacked Size

1.7 kB

Total Files

3

Last publish

Collaborators

  • cloudyan