then-got
Promisified
simple-get
.
Install
npm i then-got --save
Usage
For more use-cases see the tests
const thenGot = const isStream = // or with simple-get's .concat method// to get the content of the pagethenGot
Related
- letta: Let's move to promises! Drop-in replacement for
co@4
, but on steroids. Accepts sync, async and generator functions. - letta-value: Extends
letta
to accept and handles more than functions only. Handles all kind of results fromletta
. Basically, creating promise from everything - strings, arrays, objects, functions, generators, generator functions, promises, streams, child processe - redolent: Simple promisify everything (string, array, stream, boolean, sync/async function, etc) with sane defaults.
- relike: Simple promisify a callback-style function with sane defaults. Support promisify-ing sync functions.
- relike-all: Promisify all functions in an object, using
relike
. - relike-value: Create promise from sync, async, string, number, array and so on. Handle completion (results) and errors gracefully! Built on top of
relike
, used byredolent
to build robust (hybrid) APIs.
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
But before doing anything, please read the CONTRIBUTING.md guidelines.