@async-abstraction/tape
v10.0.0
Published
Tape library for JavaScript
Downloads
372
Readme
:vhs: @async-abstraction/tape
Tape library for JavaScript. Served with asynchronous goodness. See docs.
:warning: Depending on your environment, the code may require
regeneratorRuntime
to be defined, for instance by importing regenerator-runtime/runtime.
import { fromReadStream } from '@async-abstraction/tape' ;
const stdin = fs.createReadStream( '/dev/stdin' , { encoding : 'utf8'} ) ;
const tape = fromReadStream( stdin ) ;
for await ( const character of tape ) ... ;