joyent/node — Issue #2700: docs: start and end option missing
Author: msoulier
Created: 2012-02-05 15:39:50+00:00
State: open

http://nodejs.org/docs/latest/api/fs.html

I see that I can pass certain options

{ flags: 'r',
encoding: null,
fd: null,
mode: 0666,
bufferSize: 64 * 1024
}

such as encoding, but there's no example here of what the encoding can be.
Now, looking at the ReadStream.setEncoding docs I find some options, but why
not put them where I'm currently reading?

And then, there's this example right below it

fs.createReadStream('sample.txt', {start: 90, end: 99});

The docs don't mention a "start" or "end" option.