Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xlsdg/edit-this-cookie-to-tough-cookie

Convert EditThisCookie json format to ToughCookie json file
https://github.com/xlsdg/edit-this-cookie-to-tough-cookie

cookie toughcookie-json

Last synced: about 1 month ago
JSON representation

Convert EditThisCookie json format to ToughCookie json file

Awesome Lists containing this project

README

        

# edit-this-cookie-to-tough-cookie
Convert EditThisCookie json format to ToughCookie json file

## Installation

```
$ npm install --save etc2tc
```

## Usage

```
const etc2tc = require('etc2tc');
```

Use Request.js and Tough-Cookie-Kit, the **etc2tc** method:

```
let gCookie = Request.jar(new CookieKit(etc2tc('cookies.txt', 'cookies.json')));
```

# License

MIT