You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

tinyreq

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tinyreq

Tiny library for making http(s) requests.

1.0.0
Source
npmnpm
Version published
Weekly downloads
12K
7.7%
Maintainers
1
Weekly downloads
 
Created
Source

tinyreq

Tiny library for making http(s) requests.

Installation

$ npm install tinyreq

There 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 (with error and data parameters).

Return

  • Object The request object.

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.

Keywords

tinyreq

FAQs

Package last updated on 17 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts