tough-cookie-filestore-readonly

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i tough-cookie-filestore-readonly

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

5.8 kB

Total Files

4

Last publish

Collaborators

  • johnnyw