my-cookie-js
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

my-cookie-js

Get and set key/value into cookie

Install

$ npm install --save my-cookie-js 

Usage

var mc=MyCookie();

mc.set('key1','val1');
//document.cookie
//key1=val1;path=/

mc.get('key1');
//val1

mc.setObject('key2',{name:'name1'});
//document.cookie
//key2={\"name\":\"name1\"};path=/

mc.get('key2');
//"{\"name\":\"name1\"}"

**

License

MIT © [Dino]

Readme

Keywords

Package Sidebar

Install

npm i my-cookie-js

Weekly Downloads

2

Version

0.0.5

License

MIT

Unpacked Size

11.7 kB

Total Files

7

Last publish

Collaborators

  • moonncat