ByteStreamExtensions extension

Extensions on Stream<List<int>> that make it easier to consume the output of scripts in a human-friendly, easily-to-manipulate manner.



lines Stream<String>
Returns a stream of UTF-8 lines emitted by this process.
no setter
text Future<String>
Returns the full UTF-8 text produced by this, with trailing newlines removed.
no setter


operator >(StreamConsumer<List<int>> consumer) Future<void>
Shorthand for Stream.pipe.
operator |(Object script) Script
Pipes this into script's stdin.