
$ tinyreq

Tiny library for making http(s) requests.
Installation
You can install the package globally and use it as command line tool:
$ npm i -g tinyreq
Then, run tinyreq --help
and see what the CLI tool can do.
$ tinyreq --help
Usage: tinyreq [options]
Options:
-u, --url <url> The request url.
-m, --method <method> The request method.
-d, --data <data> The request data.
-f, --fields <fields> Other fields to merge in the request object.
-h, --help Displays this help.
-v, --version Displays version information.
Examples:
tinyreq -u http://ionicabizau.net
Documentation can be found at https://github.com/IonicaBizau/tinyreq
Example
Here is an example how to use this package as library. To install it locally, as library, you can do that using npm
:
$ npm i --save tinyreq
var TinyReq = require("tinyreq");
TinyReq("http://example.com/", function (err, body) {
console.log(err || body);
});
Documentation
For full API reference, see the DOCUMENTATION.md file.
How to contribute
Have an idea? Found a bug? See how to contribute.
Where is this library used?
If you are using this library in one of your projects, add it in this list. :sparkles:
License
MIT © Ionică Bizău