@nankle/h-cookie
v1.0.2
Published
browser cookie, cookie, js-cookie
Downloads
8
Readme
🚀 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:
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:
import hCookie from '@nankle/h-cookie';
hCookie.set('version','1.0');
hCookie.get('version');