Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

popsicle-cookie-jar

serviejs380.7kMIT1.0.1TypeScript support: included

Popsicle middleware for supporting cookies in node.js

popsicle, cookies, jar, memory, store

readme

Popsicle Cookie Jar

NPM version NPM downloads Build status Test coverage

Popsicle middleware for supporting cookies in node.js.

Installation

npm install popsicle-cookie-jar --save

Usage

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.

TypeScript

This project is written using TypeScript and publishes the definitions directly to NPM.

License

MIT