JSPM

  • Created
  • Published
  • Downloads 72024
  • Score
    100M100P100Q155758F
  • License Apache-2.0

Package Exports

  • tiny-json-http

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 (tiny-json-http) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tiny-json-http

Minimalist HTTP client for GET and POSTing JSON payloads

  • Zero dependencies: perfect for AWS Lambda
  • Sane default: assumes buffered JSON responses
  • System symmetry: Node style errback API
npm i tiny-json-http --save

api

  • tiny.get(options, callback)
  • tiny.post(options, callback)

options

  • url required
  • data only used by http.post
  • headers key/value map used for headers