As the original tough-cookie-filestore
seems to be inactive. I have to create another
implementation of File store with more security consideration for tough-cookie
module. See
tough-cookie documentation for more info.
$ npm install tough-cookie-filestore2
path
file path of cookiejar.
var FileCookieStore = require("tough-cookie-filestore2");
var CookieJar = require("tough-cookie").CookieJar;
var jar = new CookieJar(new FileCookieStore("./cookie.json"));
MIT