# parse-cookie-phantomjs **Repository Path**: mirrors_sindresorhus/parse-cookie-phantomjs ## Basic Information - **Project Name**: parse-cookie-phantomjs - **Description**: Parse a cookie for use in PhantomJS - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-05-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Deprecated [PhantomJS is deprecated.](https://github.com/ariya/phantomjs/issues/15344) --- # parse-cookie-phantomjs [![Build Status](https://travis-ci.org/sindresorhus/parse-cookie-phantomjs.svg?branch=master)](https://travis-ci.org/sindresorhus/parse-cookie-phantomjs) > Parse a cookie for use in PhantomJS Accepts a cookie string and returns an object ready to be passed into [`phantom.addCookie()`](http://phantomjs.org/api/phantom/method/add-cookie.html). ## Install ```sh $ npm install --save parse-cookie-phantomjs ``` ## Usage ```js 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](http://sindresorhus.com)