stdin property

_Intersection49 get stdin

A reference to stdin which can be used to read directly from stdin. It implements the Deno specific {@linkcode Reader}, {@linkcode ReaderSync}, and {@linkcode Closer} interfaces as well as provides a {@linkcode ReadableStream} interface.

Reading chunks from the readable stream

const decoder = new TextDecoder();
for await (const chunk of Deno.stdin.readable) {
 const text = decoder.decode(chunk);
 // do something with the text
}

Implementation

_Intersection49 get stdin => _i3.getProperty(
      this,
      'stdin',
    );