cre-cookie-parse
v1.0.1
Published
cre-cookie-parse
Downloads
9
Keywords
Readme
cre-cookie-parse Cookie操作函数库
Install
npm i cre-cookie-parse --save
# or
yarn add cre-cookie-parse
Usage
import { getCookieKeys, cookieParse } from 'cre-cookie-parse'
/**
* 获取cookie的key值
* @param {String} appId APP ID
* @return {Object} key值集合
*/
getCookieKeys(appId)
/**
* 获取cookie处理函数
* @param {Object} cookie对象
* @param {String} appId APP ID
*/
cookieParse(cookie, appId)