Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@tdio/stream

tdio18MIT1.0.2TypeScript support: included

stream utils

stream-utils

readme

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