A promise based npm package that converts a node.js ReadStream to buffer
npm install @jorgeferrero/stream-to-buffer


!npm
!npm (scoped)
A promise based Node.js package that converts a Node.js Readable to buffer
``sh`
npm i @jorgeferrero/stream-to-buffer
`typescript
import { streamToBuffer } from '@jorgeferrero/stream-to-buffer';
import * as fs from 'fs';
const data = await streamToBuffer(fs.createReadStream('./file'));
console.log(data.toString());
`
`sh`
Output should be the the content of the file
`sh``
npm run test