0.2.1 • Published 7 months ago
@stdlib/streams-node-from-constant-cli v0.2.1
Constant Stream
Create a readable stream which always streams the same value.
Installation
To use as a general utility, install the CLI package globally
npm install -g @stdlib/streams-node-from-constant-cli
Usage
Usage: constant-stream [options] <value>
Options:
-h, --help Print this message.
-V, --version Print the package version.
--sep sep Separator used to join streamed data. Default: '\n'.
-n, --iter iterations Number of iterations.
Notes
- In accordance with POSIX convention, a trailing newline is always appended to generated output prior to exit.
Examples
$ constant-stream 'beep' -n 10
See Also
@stdlib/streams-node-from-constant
: create a readable stream which always streams the same value.@stdlib/streams-node/from-array
: create a readable stream from an array-like object.@stdlib/streams-node/from-iterator
: create a readable stream from an iterator.
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.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2024. The Stdlib Authors.