q1s-cookie
v1.0.2
Published
Easily update and retreive cookies stored on the client.
Downloads
4
Readme
#client-cookie A simple object for adding and getting cookies
$ npm install --save q1s-cookie
const Cookie = require('q1s-cookie');
Cookie.key = "value";
Then in a different session on the same client
const Cookie = require('q1s-cookie');
Cookie.key === "value";
It uses proxies to automatically update the document.cookie whenever a property is changed on Cookie.
Licenses MIT Copyright Tyler R Smith 2016