1.2.1 • Published 6 years ago

js-cookie-curd v1.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

js-cookie-curd

a simple JavaScript Cookie Lib

Useage

import {
    setCookie,
    getCookie,
    removeCookie
} from 'js-cookie-curd'

// SET COOKIE,IF NOT SET YET WILL CREATE NEW ONE
// eg.`key` will expire after 3 days.Default day param is 1
setCookie('key','value',3)

// GET COOKIE BY NAME,IF NO HAS,RETURN `undefined`
getCookie('key')

// REMOVE COOKIE
removeCookie('key')
1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago