cross-process-lock

JSON →
library 2.2.0 ·javascript
verified Jun 7, 2026

Cross-process file locking solution with lock-queue for Node.js. Current stable version 2.2.0, released with TypeScript support. Uses file-based locking with a lock queue and configurable timeouts (lock timeout defaults to 20 minutes, wait timeout defaults to 10 seconds). Includes a convenient withLock wrapper for automatic lock/unlock. Ships TypeScript declarations. Key differentiator: simple async/await interface and lock queue mechanism rather than requiring external lock servers.