{"id":46820,"library":"write-file-queue","title":"write-file-queue","description":"A writeFile queue for Node.js that retries writing to a file after errors, with configurable retries and wait time. Version 0.0.1 is a minimal package released under MIT license. It is designed for simple scenarios where file writes may intermittently fail (e.g., writing to a removable device). The queue delays writes by a specified waitTime and retries up to retries times. No dependencies, no TypeScript support, and no active maintenance since 2014.","status":"abandoned","version":"0.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/wankdanker/node-write-file-queue","tags":["javascript","write","file","queue","rewrite","reattempt","error"],"install":[{"cmd":"npm install write-file-queue","lang":"bash","label":"npm"},{"cmd":"yarn add write-file-queue","lang":"bash","label":"yarn"},{"cmd":"pnpm add write-file-queue","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The module exports a factory function that must be called with options to get a writeFile function.","wrong":"var writeFileQueue = require('write-file-queue');\nwriteFileQueue(options);","symbol":"writeFile (factory result)","correct":"var writeFile = require('write-file-queue')(options);"},{"note":"No named exports; ESM support is not guaranteed as package is CJS-only.","wrong":"import { writeFile } from 'write-file-queue';","symbol":"default export (ESM)","correct":"import createWriteFile from 'write-file-queue';\nconst writeFile = createWriteFile(options);"},{"note":"The writeFile function uses callback pattern, not promises.","wrong":"writeFile('/path', 'data').then(...);","symbol":"writeFile callback","correct":"writeFile('/path', 'data', function(err) { /* handle err */ });"}],"quickstart":{"code":"var createWriteFile = require('write-file-queue');\nvar options = {\n  retries: 10,\n  waitTime: 500,\n  debug: console.error\n};\nvar writeFile = createWriteFile(options);\n\nwriteFile('/tmp/test.txt', 'Hello World', function (err) {\n  if (err) {\n    console.error('Write failed after retries:', err);\n  } else {\n    console.log('Write successful');\n  }\n});","lang":"javascript","description":"Shows how to install and use the package: create a queue with retries and waitTime, then write a file with retry logic."},"warnings":[{"fix":"Consider alternatives like fs-extra's writeFile or custom retry logic with modern async/await.","message":"Package is unmaintained since 2014 and has no updates.","severity":"deprecated","affected_versions":"all"},{"fix":"Always pass an options object with at least retries and waitTime.","message":"The factory function must be called with options object; passing null or invalid options will cause runtime errors.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Use the debug option to log intermediate errors.","message":"The callback receives the last error after all retries fail; it does not provide intermediate errors.","severity":"gotcha","affected_versions":">=0.0.1"}],"env_vars":null,"search_vec":"'0.0.1':25 '2014':76 'activ':73 'configur':19 'delay':54 'depend':67 'design':36 'devic':51 'e.g':46 'error':17,83 'fail':45 'file':3,15,41,79 'intermitt':44 'javascript':77 'licens':33 'mainten':74 'may':43 'minim':28 'mit':32 'node.js':9 'packag':29 'queue':4,7,53,80 'reattempt':82 'releas':30 'remov':50 'retri':11,20,61,64 'rewrit':81 'scenario':39 'simpl':38 'sinc':75 'specifi':58 'support':70 'time':23,65 'typescript':69 'version':24 'wait':22 'waittim':59 'write':2,12,42,47,55,78 'write-file-queu':1 'writefil':6","created_at":"2026-06-07T13:01:47.904650+00:00","updated_at":"2026-06-07T13:01:47.904650+00:00","problems":[{"fix":"Use const createWriteFile = require('write-file-queue'); then call createWriteFile(options).","cause":"Using named import from an ESM environment on a CJS-only package, or calling require incorrectly.","error":"TypeError: createWriteFile is not a function"},{"fix":"Run: npm install write-file-queue","cause":"Package not installed or not present in node_modules.","error":"Error: Cannot find module 'write-file-queue'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/wankdanker/node-write-file-queue","github":"https://github.com/wankdanker/node-write-file-queue","docs":null,"changelog":null,"pypi":null,"npm":"write-file-queue","openapi_spec":null,"status_page":null,"smithery":null,"categories":["storage"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}