@nodifier/stream
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

@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);
}

Package Sidebar

Install

npm i @nodifier/stream

Weekly Downloads

1

Version

0.0.3

License

ISC

Unpacked Size

66.9 kB

Total Files

18

Last publish

Collaborators

  • gamemasterdev