fork download
  1. process.stdin.resume();
  2. process.stdin.setEncoding('utf8');
  3.  
  4. console.log(process.stdin);
Success #stdin #stdout 0.09s 36212KB
stdin
1
stdout
ReadStream {
  _readableState:
   ReadableState {
     objectMode: false,
     highWaterMark: 65536,
     buffer: BufferList { head: null, tail: null, length: 0 },
     length: 0,
     pipes: null,
     pipesCount: 0,
     flowing: true,
     ended: false,
     endEmitted: false,
     reading: false,
     sync: true,
     needReadable: false,
     emittedReadable: false,
     readableListening: false,
     resumeScheduled: true,
     paused: false,
     emitClose: false,
     autoDestroy: false,
     destroyed: false,
     defaultEncoding: 'utf8',
     awaitDrain: 0,
     readingMore: false,
     decoder:
      StringDecoder {
        encoding: 'utf8',
        [Symbol(kNativeDecoder)]: <Buffer 00 00 00 00 00 00 01> },
     encoding: 'utf8' },
  readable: true,
  _events:
   [Object: null prototype] { end: [Function], pause: [Function] },
  _eventsCount: 2,
  _maxListeners: undefined,
  path: null,
  fd: 0,
  flags: 'r',
  mode: 438,
  start: undefined,
  end: Infinity,
  autoClose: false,
  pos: undefined,
  bytesRead: 0,
  closed: false }