@deepjs/cookie
v0.2.9
Published
A simple, lightweight JavaScript API for handling browser cookies
Downloads
3
Readme
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);