News for hackers. Stuff that matters.
Re:Synchronous line-by-line file reader for Node.js by nacholibrev on Friday January 16, 2015 @08:41AM (#8898798)
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.