Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tinyreq

Package Overview
Dependencies
Maintainers
1
Versions
29
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.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.8K
decreased by-18.56%
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

  • EventEmitter An event emitter you can use for listening for the data, error and end events.

How to contribute

  1. 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.
  2. Fork the project in your account and create a new branch: your-great-feature.
  3. Commit your changes in that branch.
  4. Open a pull request, and reference the initial issue in the pull request message.

License

See the LICENSE file.

Keywords

FAQs

Package last updated on 29 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc