This package has been deprecated

Author message:

PhantomJS is deprecated.

parse-cookie-phantomjs

2.0.0 • Public • Published

Deprecated

PhantomJS is deprecated.


parse-cookie-phantomjs Build Status

Parse a cookie for use in PhantomJS

Accepts a cookie string and returns an object ready to be passed into phantom.addCookie().

Install

$ npm install --save parse-cookie-phantomjs

Usage

var parseCookiePhantomjs = require('parse-cookie-phantomjs');
 
parseCookiePhantomjs('foo=bar; Path=/; Domain=localhost');
/*
{
    name: 'foo',
    value: 'bar',
    domain: 'localhost',
    path: '/',
    httponly: false,
    secure: false,
    expires: 'Infinity'
}
*/

License

MIT © Sindre Sorhus

Package Sidebar

Install

npm i parse-cookie-phantomjs

Weekly Downloads

813

Version

2.0.0

License

MIT

Unpacked Size

3.12 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus