tough-cookie-file-store
Another file store for tough-cookie module.
The main purpose of this project is to have a published module with the original functionality of tough-cookie-filestore plus various fixes, improvements and features that I found useful.
This fork mainly fixes that cookie path has trailing slash.
Installation
$ npm install tough-cookie-file-store-bugfix
Usage
var cookieStore = ;var CookieJar = CookieJar;var jar = './cookie.json';/* check if cookie is empty or expired */var cookieStore = ;var cookieInstance = './cookie.json';cookieInstance // will return True if the cookie is expiredcookieInstance // will return True is cookie is empty/* request example */var cookieStore = ;var j = request;request = request
Credits
tough-cookie-filestore module: @mitsuru
fixes/improvements: @sarkian @mudkipme @vladh
expired feature: @zhzehong
License
MIT