Socket
Socket
Sign inDemoInstall

cookies.txt

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cookies.txt

This is a wget cookies.txt formart parser for nodejs and request.


Version published
Weekly downloads
588
increased by19.51%
Maintainers
1
Weekly downloads
 
Created
Source

cookies.txt

TestStatus:Test Status

#README This is a wget cookies.txt formart parser for nodejs.

Convert wget cookies.txt format file into JSON boject.

Working whith http.requst or request module.

##Install npm install cookies.txt

##Usage

var cookie = require('cookies.txt');
cookie.parse('your cookies.txt file path here.', function(jsonCookieObj){
  //your codes here 
  //...
});

Working with request module

var request = require('request');
var cookie = requeire('cookies.txt');

cookie.parse('your cookies.txt file path here.', function(jsonCookieObj){
  //your codes here 
  request.get({
      url:'the http url',
      jar:true, 
      encoding:null, 
      headers:{
        Cookie:cookie.getCookieString('the url')}})
    .pipe(AWritebleStreamInstance);
  //...
});

##License MIT

FAQs

Package last updated on 12 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc