0.0.1 • Published 5 years ago

tough-cookie-filestore-readonly v0.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

File Cookie Store

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.

installation

$ npm install tough-cookie-filestore-readonly

Options

path file path of cookiejar.

Usage

const FileCookieStore = require("tough-cookie-filestore"); const CookieJar = require("tough-cookie").CookieJar;

const jar = new CookieJar(new FileCookieStore("./cookie.json"));

Credit

Thanks to @mitsuru for making the original tough-cookie-firestore package.

License

MIT