jar
jar(
cookies?):object
Defined in: lib/cookie/jar.js:100
Creates a cookie jar pre-populated from a parsed cookie object.
Incoming cookie names that collide with jar prototype methods or own properties
(set, get, clear, toHeader, isJar, size, jar) are silently dropped
to prevent TypeError from strict-mode assignment to non-writable properties.
Parameters
Section titled “Parameters”cookies?
Section titled “cookies?”object = {}
Initial cookie values (from parse())
Returns
Section titled “Returns”object
- Cookie jar with
get,set,clear,toHeader,sizemembers