cookier
Simple utility function to get, set and remove cookies
Install
npm install cookier
Import
;
Usage
Set cookies
;
;
Set cookies with expiry time
//sets a cookie with an expiry of 86400 seconds, or one day.;
Get cookies
const cookieOne = ; // this will equal 'true'
const cookieTwo = ;// this will equal '{"key":"value"}'
const cookieTwo = JSON;/* this will equal: { keyOne: 'valueOne', keyTwo: 'valueTwo'}*/
Remove cookies
;