You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Priyanka Punukollu 267a7b1e4f Merge remote main into local — keep all agent feature files and Angular UI changes 1 month ago
..
.github/workflows Merge remote main into local — keep all agent feature files and Angular UI changes 1 month ago
lib Merge remote main into local — keep all agent feature files and Angular UI changes 1 month ago
test Merge remote main into local — keep all agent feature files and Angular UI changes 1 month ago
.editorconfig Merge remote main into local — keep all agent feature files and Angular UI changes 1 month ago
.eslintrc Merge remote main into local — keep all agent feature files and Angular UI changes 1 month ago
.pre-commit-config.yaml Merge remote main into local — keep all agent feature files and Angular UI changes 1 month ago
.prettierrc Merge remote main into local — keep all agent feature files and Angular UI changes 1 month ago
CHANGELOG.md Merge remote main into local — keep all agent feature files and Angular UI changes 1 month ago
LICENSE Merge remote main into local — keep all agent feature files and Angular UI changes 1 month ago
README.md Merge remote main into local — keep all agent feature files and Angular UI changes 1 month ago
package.json Merge remote main into local — keep all agent feature files and Angular UI changes 1 month ago

README.md

tough-cookie-file-store

NPM

A JSON file store implementation for tough-cookie module

Version npm npm Downloads Tests Status Coverage Status dependencies Status JavaScript Style Guide Donate

Installation

$ npm install tough-cookie-file-store

Usage

const { CookieJar, Cookie } = require('tough-cookie')
const CookieFileStore = require('tough-cookie-file-store').FileCookieStore
const cookieJar = new CookieJar(new CookieFileStore('./cookie.json'))
const cookie = Cookie.parse('foo=bar; Domain=example.com; Path=/')
cookieJar.setCookie(cookie, 'http://example.com', function (error, cookie) {
  console.log(cookie)
})

License

MIT