Popsicle middleware for supporting cookies in node.js.
npm install popsicle-cookie-jar --save
import { cookies, CookieJar } from "popsicle-cookie-jar";
const middleware = compose([cookies(), transport()]);
The only argument to cookies
is an optional CookieJar
instance. By default, it will create an in-memory instance for you.
This project is written using TypeScript and publishes the definitions directly to NPM.
MIT