Standard Output
Standard output.
Installation
npm install @stdlib/streams-node-stdout
Notes
- Unlike other streams,
stdout
can never be closed and, thus, never emits a 'finish'
event. - Although rare, writes can block when output is redirected to a file.
Examples
var proc = require( 'process' );
var stdin = require( '@stdlib/streams-node-stdin' );
var stdout = require( '@stdlib/streams-node-stdout' );
stdin.setEncoding( 'utf8' );
stdin.pipe( stdout );
stdin.push( 'beep' );
stdin.push( ' ' );
stdin.push( 'boop' );
stdin.push( '\n' );
stdin.push( null );
setTimeout( proc.exit, 1000 );
Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
License
See LICENSE.
Copyright
Copyright © 2016-2021. The Stdlib Authors.
0.0.3 (2021-06-16)
No changes reported for this release.
</section>
<!-- /.release -->
<section class="release" id="v0.0.2">