Skip to content

CesiumLabs/promise-to-readable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Promise Stream

Converts promise-to-readable to readable stream.

Example

const promiseStream = require("promise-to-readable");
const fetch = require("node-fetch");

const promise = fetch("https://google.com").then(res => res.body);
const readable = promiseStream(promise);

readable.pipe(process.stdout);

About

Convert Promise<Readable> to Readable.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published