Agreed, if I could find a tiny stable module amongst the many that are out there. When I originally looked into this I found a thread on stackoverflow which made multiple mentions of these modules having significant memory leaks. I opted to write something simple and blame myself if it broke in the future...
http://stackoverflow.com/questions/6156501/read-a-file-one-line-at-a-time-in-node-js Changing the topic: how do people pick the best module for the job, when presented with multiple options? Obviously checking the popularity on npmjs.org is a good start, but if it just happens to have snagged a good name and provide a poor implementation, well, that doesn't help. Up until now I've picked modules that provide features meeting my use case, but this file reading bits made me question it... On Mon, Apr 14, 2014 at 3:42 PM, Aria Stewart <[email protected]> wrote: > > On Apr 14, 02014, at 15:36, Warren Lindsey <[email protected]> > wrote: > > > It just seems wrong to require a third party library just to iterate a > file. > > I suppose, if you’re averse to a tiny, stable module. Who’s to say that’s > the kind of iteration to include, though. You’ve already got three variants > with DOS, MacOS Classic and UNIX line-ends; mboxes split on "\nFrom ", MIME > splits on \r\n\rn. It’s a common case but hardly the case. I’m down with > it, at least. > > And it’s such a simple thing to implement. Hence the proliferation of > modules that do just that. > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
