0.1.1 • Published 8 years ago

tough-cookie-kit v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Describe

tough-cookie-kit is a toolkit for tough-cookie module.

installation

$ npm install tough-cookie-kit

Usage

You can use it to initialize a cookieJar.

var cookiekit = require("tough-cookie-kit");
var CookieJar = require("tough-cookie").CookieJar;

var jar = new CookieJar(new cookiekit("./cookie.json"));

Now, it has another feature to check whether the cookies is expired

var cookiekit = require("tough-cookie-kit");
var cookiekitInstance = new cookiekit("./cookie.json")
cookiekitInstance.isExpired()	// will return True if the cookies is expired

License

MIT

0.1.1

8 years ago

0.1.0

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago