@nodifier/stream
v0.0.3
Published
Utility to convert stream readable to string in NodeJS
Downloads
5
Maintainers
Readme
@nodifier/stream
Utility to convert readable stream to string in NodeJS
Getting started
Installing
npm install --save @nodifier/stream
Convert stream readable to string
import { streamToString } from '@nodifier/stream'
const str = streamToString(readableStream);
streamToString is an async function. If you are using it in the confine of a function/method, you'll need to be sure you added async/await
.
async someFunction() {
const str = await streamToString(readableStream);
}