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.

  • 3.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.8K
decreased by-18.56%
Maintainers
1
Weekly downloads
 
Created
Source

tinyreq

tinyreq

PayPal AMA Version Downloads Get help on Codementor

Tiny library for making http(s) requests.

:cloud: Installation

$ npm i --save tinyreq

:bulb: ProTip: You can install the cli version of this module by running npm i -g tinyreq-cli

:clipboard: Example

const tinyreq = require("tinyreq");

// Make a request to example.com
tinyreq("http://example.com/", (err, body) => {
    console.log(err || body);
});

:memo: 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.
  • encoding (String): The encoding type.
  • 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.

:yum: How to contribute

Have an idea? Found a bug? See how to contribute.

:dizzy: Where is this library used?

If you are using this library in one of your projects, add it in this list. :sparkles:

  • cheerio-req—An http request module sending back a Cheerio object.
  • github-colors—GitHub colors and file extensions mapping
  • jsonrequest—A tiny library for requesting and getting JSON resources.
  • tinyreq-cli—A cli tool for making http(s) requests. CLI for tinyreq.
  • wrabbit (by jillix)—Wrap scripts by providing the wrapping function.

:scroll: License

MIT © Ionică Bizău

Keywords

FAQs

Package last updated on 11 May 2016

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