handle-cookie
v1.0.8
Published
Parse string to cookie object
Downloads
38
Maintainers
Readme
Handle Cookie 
Functions:
/**
* @method cookieParse: Parse string to cookie objiect
* @param str string | undefined
* @param option CookieParseOptions | undefined
* @returns { [key: string]: string } | undefined
*/
function cookieParse(str: string | undefined, option?: CookieParseOptions | undefined): { [key: string]: string } | undefined;/**
* @method cookieSerialize: Convert object to cookie string
* @param name string
* @param value string | undefined
* @param option CookieSerializeOptions | undefined
* @returns string | undefined
*/
function cookieSerialize(name: string | undefined, value: string | undefined, option?: CookieSerializeOptions | undefined): string | undefined;