Settings

Theme

Synchronous line-by-line file reader for Node.js

github.com

3 points by nacholibrev 11 years ago · 1 comment

Reader

nacholibrevOP 11 years ago

Reading file line by line may seem like a trivial problem, but in node, there is no straightforward way to do it. There are a lot of libraries using Transform Streams to achieve it, but it seems like a overkill, so I've wrote simple version using only the filesystem module of node.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection