serviejs / popsicle-cookie-jar

Popsicle middleware for supporting cookies in node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Popsicle middleware for supporting cookies in node.js

License:MIT License


Languages

Language:TypeScript 100.0%