JSPM

write-file-queue

0.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7365
  • Score
    100M100P100Q130067F
  • License MIT

A writeFile queue which reattempts to write after errors occur

Package Exports

  • write-file-queue

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (write-file-queue) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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

npm install write-file-queue

example/usage

var writeFile = require('write-file-queue')({
    retries : 1000
    , waitTime : 1000 /*milliseconds*/ 
});

writeFile('/dev/usb/lp0', 'data to send to lp0', function (err) {
    if (err) {
        console.log('Write ultimately failed', err);
    }
});

license

MIT