Skip to content

Instantly share code, notes, and snippets.

@loretoparisi
Created November 9, 2018 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loretoparisi/fbbd7cf31b9fd1ea6218f27a3e71c70a to your computer and use it in GitHub Desktop.
Save loretoparisi/fbbd7cf31b9fd1ea6218f27a3e71c70a to your computer and use it in GitHub Desktop.
Node.js ReadStream dump with start, end, and pos defined
{
_readableState:
ReadableState {
objectMode: false,
highWaterMark: 65536,
buffer: BufferList { length: 0 },
length: 0,
pipes: null,
pipesCount: 0,
flowing: null,
ended: false,
endEmitted: false,
reading: false,
sync: true,
needReadable: false,
emittedReadable: false,
readableListening: false,
resumeScheduled: false,
emitClose: false,
destroyed: false,
defaultEncoding: 'utf8',
awaitDrain: 0,
readingMore: false,
decoder: null,
encoding: null },
readable: true,
domain: null,
_events: { end: [Function] },
_eventsCount: 1,
_maxListeners: undefined,
path: '/root/12380193.mp3',
fd: null,
flags: 'r',
mode: 438,
start: 120515,
end: 240260,
autoClose: true,
pos: 120515,
bytesRead: 0,
closed: false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment