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

1.0.2 • Public • Published

@tdio/stream

Stream utils with some light warppers (based on builtin "stream")

Install

yarn add @tdio/stream

Usage

import { through } from '@tdio/stream'

process.stdin
  .pipe(through(function(chunk, enc, cb) {
    console.log('--->', chunk)
    cb(null, '[' + Date.now() + '] ' + chunk)
  }))
  .pipe(process.stdout)

Readme

Keywords

Package Sidebar

Install

npm i @tdio/stream

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

3.55 kB

Total Files

5

Last publish

Collaborators

  • allex