UNPKG

@aikidosec/firewall

Version:

Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks

15 lines (14 loc) 554 B
/** * Implementation based on https://github.com/jshttp/cookie * License: MIT * Copyright (c) 2012-2014 Roman Shtylman <shtylman@gmail.com> * Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com> */ /** * This function parses a cookie string and returns an object * @param str A string containing cookies * @returns Object with the cookie name as a key and their value as a value * @example * parse("foo=oof;bar=rab"); // Returns {foo: "oof", bar: "rab"} */ export declare function parse(str: string): Record<string, string>;