🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

lightning-request

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lightning-request

Lightweight Node.js HTTP client

0.0.2
Source
npm
Version published
Weekly downloads
4
-88.89%
Maintainers
1
Weekly downloads
 
Created
Source

⚡ Lightweight Node.js HTTP client.

logo

Install

npm i lightning-request

Why lightning-request?

lightning-request is the most lightweight HTTP client for Node, it provides a number of extremely useful features.

Use lightning-request

First, require the library.

const request = require('lightning-request');

Then let's make a request in an async function.

const request = require('lightning-request');

(async function() {
  try {
    const result = await request({
      url: 'https://github.com/node-labx/lightning-request',
    });
    console.log(result.statusCode); // response status code
    console.log(result.body); // response body
  } catch (error) {
    console.log(error);
  }
})();

Contributing

  • Fork this repo
  • Clone your repo
  • Install dependencies
  • Checkout a feature branch
  • Feel free to add your features
  • Make sure your features are fully tested
  • Open a pull request, and enjoy <3

FAQs

Package last updated on 06 Dec 2019

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