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

tinyreq
Tiny library for making http(s) requests.
Installation
$ npm install tinyreqThere is a cli version (which can be installed via npm i -g tinyreq). Run tinyreq -h for help info.
Example
// Dependencies
var TinyReq = require("tinyreq");
// Make a request
TinyReq("http://example.com/", function (err, body) {
console.log(err || body);
});Documentation
TinyReq(options, callback)
Creates http(s) requests.
Params
String|Object
options: A string being the request url or an object containing the following fields:url(String): The request url.method(String): The request method.data(Object): The request POST data.Function
callback: The callback function called (witherroranddataparameters).
Return
- EventEmitter An event emitter you can use for listening for the
data,errorandendevents.
How to contribute
- File an issue in the repository, using the bug tracker, describing the contribution you'd like to make. This will help us to get you started on the right foot.
- Fork the project in your account and create a new branch:
your-great-feature. - Commit your changes in that branch.
- Open a pull request, and reference the initial issue in the pull request message.
License
See the LICENSE file.