Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/allevo/httpbin-lib

Lib for httpbin
https://github.com/allevo/httpbin-lib

Last synced: 14 days ago
JSON representation

Lib for httpbin

Awesome Lists containing this project

README

        

# httpbin-lib
Lib for [httpbin](https://httpbin.org/)

## Install

```
npm i httpbin-lib
```

## Example

```js
'use strict'

const HttpBinClient = require('httpbin-lib')

const client = new HttpBinClient()

client.invokeGet()
.then(output => console.log(output))
.catch(e => console.log(e.message))

client.invokeStream(10)
.then(s => {
s.on('data', d => console.log(d))
})
```

## License

MIT