$ npm install buffered-reader
Availability | Compatibility | Documentation
Version: 0.2.5
When you need to read a file you typically read a chunk of bytes called "buffer" to avoid multiple calls to the underlying I/O layer, so instead of reading directly from the disk, you read from the previous filled buffer. Doing this you win performance.
This library allows you to read files using internal buffers, so you don't have to worry about them. In addition, you can read a text file line by line.
Via npm:
npm install buffered-reader
Or simply copying build/buffered-reader.js
into your project's directory and require()
accordingly.
✔ Node *
Reference
Examples
Change log
MIT License
© 2010 - cnpmjs.org x YWFE | Home | YWFE