@mainframe/transport-http-node

HTTP transport for node

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
11Mar 10, 2019Apr 10, 2018Minified + gzip package size for @mainframe/transport-http-node in KB

Readme

transport-http-node

HTTP transport for node.

Installation

yarn add @mainframe/transport-http-node

Usage

import httpTransport from '@mainframe/transport-http-node'

const transport = httpTransport('http://localhost')

transport.request({ hello: 'transport' }).then(console.log)

API

httpTransport()

Arguments

  1. url: string

Returns (data: Object) => Promise<any>

License

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.