osr

oboe-stream-request

Use request.js with oboe.js

Showing:

Popularity

Downloads/wk

2

GitHub Stars

0

Maintenance

Last Commit

3yrs ago

Contributors

1

Package

Dependencies

0

Size (min+gzip)

0.6KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

oboe-stream-request

oboe-stream-request provides support for using request.js with Oboe.js

installation

> yarn add oboe-stream-request or
> npm i oboe-stream-request --save

usage

const request = require('request'),
      oboe    = require('request'),
      fetch   = require('oboe-stream-request')(oboe, request);

fetch({
    url : 'http://myhost.com/json.json'
    .... other request.js options
})
.on('start',   () => { ... })
.on('fail',    () => { ... })
.on('aborted', () => { ... })
.on('done',    () => { ... })

example usage

additions

A aborted event can be subscribed to listen to when an oboe abort event is fired.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using yarn test / npm test.

Release History

  • 1.0.0 Initial release

License

Copyright (c) 2016 Jonathan Barnett. Licensed under the MIT license.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100