Skip to content

serviejs/popsicle-cookie-jar

Repository files navigation

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