JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9084
  • Score
    100M100P100Q162373F
  • License ISC

nothin but nets. http client that works in node and browsers

Package Exports

  • nets

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nets) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

nets

Mac/Linux Windows Browsers
Travis Build status testling badge

nothin but nets. http client that works in node and browsers

uses xhr for browsers and request for node

var nets = require("nets")

nets({
    body: '{"foo": "bar"}',
    url: "/foo",
    method: "POST",
    headers: {
        "Content-Type": "application/json"
    }
}, function (err, resp, body) {

})