项目作者: kephin

项目描述 :
:cookie: Cookie management library in JavaScript from Udemy course
高级语言: JavaScript
项目地址: git://github.com/kephin/Cookie_Cookie-Manager-JS.git
创建时间: 2018-03-31T09:12:45Z
项目社区:https://github.com/kephin/Cookie_Cookie-Manager-JS

开源协议:MIT License

下载


cookie-manager-js

cookie management library in JavaScript

Installation

  1. npm install cookie-manager
  2. # or
  3. yarn add cookie-manager

Usage

  1. import cookieManager from 'cookie-manager-js';

Functionalities

Getting a cookie with given cookie name

  1. cookieManager.get(name);

Listing All Cookies

Returns all of the existing cookies

  1. cookieManager.find();

Creating a new cookie

  1. cookieManager.create(name, value, expires, domain, path, secure);

Updating an existing cookie

  1. cookieManager.update(name, value, expires, domain, path, secure);

Deleting a cookie with given cookie name

  1. cookieManager.remove(name);

Clearing All Cookies

Clears all of the existing cookies

  1. cookieManager.clear();

License

Licensed under the MIT License.