BlueGit

blue-star danique-bot

Files

danique-bot / node_modules / parse-cookie-phantomjs
NameLast commitLast update
index.js Import template 4 years ago
license Import template 4 years ago
package.json Import template 4 years ago
readme.md Import template 4 years ago
readme.md

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