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

1.0.8 • Public • Published

Handle Cookie Build Status

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;

Package Sidebar

Install

npm i handle-cookie

Weekly Downloads

55

Version

1.0.8

License

MIT

Unpacked Size

3.8 kB

Total Files

6

Last publish

Collaborators

  • nqnghia285