Minimalist HTTP
client for GET
and POST
ing 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
tiny.get(options, callback)
tiny.post(options, callback)
tiny.put(options, callback)
tiny.del(options, callback)
-
url
required -
data
form vars fortiny.post
,tiny.put
, andtiny.delete
otherwise querystring vars fortiny.get
-
headers
key/value map used for headers
Check out the tests for examples! 💟