Essentially tough-cookie-filestore, but in its readonly form. Useful if you only need to read cookies from a JSON but do not need to persist.
tough-cookie-filestore is a File store for tough-cookie module. See tough-cookie documentation for more info.
$ npm install tough-cookie-filestore-readonly
path
file path of cookiejar.
const FileCookieStore = require("tough-cookie-filestore");
const CookieJar = require("tough-cookie").CookieJar;
const jar = new CookieJar(new FileCookieStore("./cookie.json"));
Thanks to @mitsuru for making the original tough-cookie-firestore
package.
MIT