Socket
Socket
Sign inDemoInstall

xhr2-cookies

Package Overview
Dependencies
1
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    xhr2-cookies

XMLHttpRequest polyfill for node.js


Version published
Weekly downloads
152K
increased by2.46%
Maintainers
1
Install size
69.3 kB
Created
Weekly downloads
 

Readme

Source

XMLHttpRequest polyfill for node.js

Based on https://github.com/pwnall/node-xhr2

  • Adds support for cookies
  • Adds in-project TypeScript type definitions
  • Switched to TypeScript

Cookies

  • saved in XMLHttpRequest.cookieJar
  • saved between redirects
  • saved between requests
  • can be cleared by doing:
import * as Cookie from 'cookiejar';
XMLHttpRequest.cookieJar = Cookie.CookieJar();

Aims

  • Provide full XMLHttpRequest features to Angular Universal HttpClient & node-angular-http-client

Changelog

1.1.0
  • added saving of cookies between requests, not just redirects
  • bug fixes
  • most tests from xhr2 ported over and passing

Keywords

FAQs

Last updated on 14 Nov 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc