xhr2-cookies
XMLHttpRequest polyfill for node.js
Last updated 3 years ago by souldreamer .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install xhr2-cookies 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.0                                ...           latest (3 years ago)

9 Versions

  • 1.1.0                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.9.3                                ...           3 years ago
  • 0.9.2                                ...           3 years ago
  • 0.9.1                                ...           3 years ago
  • 0.9.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 3
This Week 259
This Month 1,762
Last Day 80
Last Week 545
Last Month 1,669
Dependencies (1)
Dev Dependencies (15)
Dependents (103)

Copyright 2014 - 2016 © taobao.org |