A module for modern HTTP/HTTPS requests with support for form data, file uploads, JSON, binary data, streams, and more.
Go to file
2017-01-29 01:21:48 +01:00
dist add exports 2017-01-29 01:12:42 +01:00
test initial 2017-01-29 00:52:58 +01:00
ts add exports 2017-01-29 01:12:42 +01:00
.gitignore initial 2017-01-29 00:52:58 +01:00
.gitlab-ci.yml improve README 2017-01-29 01:21:48 +01:00
package.json 1.0.1 2017-01-29 01:12:48 +01:00
README.md improve README 2017-01-29 01:21:48 +01:00
tslint.json improve README 2017-01-29 01:21:48 +01:00

smartrequest

dropin replacement for request

Availabililty

npm git git docs

Status for master

build status coverage report npm downloads per month Dependency Status bitHound Dependencies bitHound Code TypeScript node JavaScript Style Guide

Usage

Use TypeScript for best in class instellisense.

import * as smartrequest from 'smartrequest'

// simple post
let options: smartreqest.ISmartRequestOptions = { // typed options
    headers: {
        "Content-Type": "application/json"
        "Authorization": "Bearer token"
    },
    requestBody: {
        key1: 'value1',
        key2: 3
    }
}

smartrequest.post('https://example.com', options)

npm