Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/allevo/httpbin-lib
- Owner: allevo
- License: mit
- Created: 2021-07-09T10:22:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-09T11:01:55.000Z (over 3 years ago)
- Last Synced: 2024-10-25T15:41:50.633Z (20 days ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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