Socket
Socket
Sign inDemoInstall

write-file-queue

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    write-file-queue

A writeFile queue which reattempts to write after errors occur


Version published
Weekly downloads
2.9K
increased by14.35%
Maintainers
1
Install size
10.4 kB
Created
Weekly downloads
 

Readme

Source

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 /* 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

Keywords

FAQs

Last updated on 01 Aug 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc