Nietzsche's Preposterous Moustache
Miss any of our Open RFC calls?Watch the recordings here! »

kwest-cookies

0.2.2 • Public • Published

kwest-cookies Build Status Dependency Status

Cookies middleware for kwest module.

Installation

$ npm install --save kwest-cookies

Use

var redirect = require('kwest-cookies'),
    kwest    = require('kwest'),
    tough    = require('tough-cookie'),
    request  = kwest().use(cookies({
      jar: new tough.CookieJar()
    }));
 
// With a global jar
request('http://www.example.com')
// Or per request
request({
  uri: 'http://www.example.com'),
  jar: new tough.CookieJar()
});
 

Keywords

Install

npm i kwest-cookies

DownloadsWeekly Downloads

2

Version

0.2.2

License

MIT

Last publish

Collaborators

  • avatar