tough-cookie-file-store
A JSON file store for tough-cookie module
Last updated 4 months ago by ivanmarban .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install tough-cookie-file-store 
SYNC missed versions from official npm registry.

tough-cookie-file-store

NPM

A JSON file store implementation for tough-cookie module

Version npm npm Downloads Build 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

Current Tags

  • 2.0.2                                ...           latest (4 months ago)

7 Versions

  • 2.0.2                                ...           4 months ago
  • 2.0.1                                ...           5 months ago
  • 2.0.0                                ...           5 months ago
  • 1.2.0                                ...           3 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago

Copyright 2014 - 2016 © taobao.org |