tiny-json-http
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/tiny-json-http package

3.0.5 • Public • Published

tiny-json-http

Minimalist HTTP client for GET and POSTing JSON payloads

  • Zero dependencies: perfect for AWS Lambda or Browserify
  • 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)
  • tiny.put(options, callback)
  • tiny.del(options, callback)

options

  • url required
  • data form vars for tiny.post, tiny.put, and tiny.delete otherwise querystring vars for tiny.get
  • headers key/value map used for headers

Check out the tests for examples! 💟

Readme

Keywords

none

Package Sidebar

Install

npm i tiny-json-http@3.0.5

Version

3.0.5

License

Apache-2.0

Last publish

Collaborators

  • brianleroux