Displaying 1 to 3 from 3 results

node-graceful-fs - fs with incremental backoff on EMFILE

  •    Javascript

graceful-fs functions as a drop-in replacement for the fs module, making various improvements.The improvements are meant to normalize behavior across different platforms and environments, and to make filesystem access more resilient to errors.

filequeue - Drop-in Replacement for `fs` that avoids `Error: EMFILE, too many open files`

  •    Javascript

As of version 0.4.0, Filequeue supports Node 0.10.x, and as of version 0.5.0, it has basic Streams support. Filequeue was born out of my encounter with Error: EMFILE, too many open files, which occurs when you try to open too many files at once on your system. Due to Node's asynchronous nature, if you perform a lot of fs.readFile or similar operations in quick succession, you can easily hit your system's maxfiles limit, usually set to 256 on a dev box.

node-lazystream - Create streams lazily when they are accessed (read from/written to).

  •    Javascript

Sometimes you feel the itch to open all the files at once. You want to pass a bunch of streams around, so the consumer does not need to worry where the data comes from. From a software design point-of-view this sounds entirely reasonable. Then there is that neat little function fs.createReadStream() that opens a file and gives you a nice fs.ReadStream to pass around, so you use what the mighty creator deities of node bestowed upon you. This package provides two classes based on the node's Streams3 API (courtesy of readable-stream to ensure a stable version).