Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wankdanker/node-write-file-queue
A writeFile queue which reattempts to write after errors occur
https://github.com/wankdanker/node-write-file-queue
Last synced: 2 months ago
JSON representation
A writeFile queue which reattempts to write after errors occur
- Host: GitHub
- URL: https://github.com/wankdanker/node-write-file-queue
- Owner: wankdanker
- Created: 2014-08-01T15:59:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-01T16:19:26.000Z (over 10 years ago)
- Last Synced: 2024-10-13T21:36:31.848Z (3 months ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
node-write-file-queue
---------------------A writeFile queue which will re-attempt to write files after errors occur. The
writes are delayed by the `waitTime` option and will re-occurr up to `retries`
many times.install
-------```bash
npm install write-file-queue
```example/usage
-------------```js
var writeFile = require('write-file-queue')({
retries : 1000 /* number of write attempts before failing */
, waitTime : 1000 /* number of milliseconds to wait between write attempts*/
, debug : console.error /* optionally pass a function to do dump debug information to */
});writeFile('/dev/usb/lp0', 'data to send to lp0', function (err) {
if (err) {
console.log('Write ultimately failed', err);
}
});
```license
-------MIT