https://github.com/allevo/httpbin-lib
Lib for httpbin
https://github.com/allevo/httpbin-lib
Last synced: 3 months 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 (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-09T11:01:55.000Z (about 4 years ago)
- Last Synced: 2025-03-20T06:34:58.018Z (4 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- 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