{"library":"proper-lockfile","type":"library","category":null,"description":"proper-lockfile is a robust JavaScript utility for managing inter-process and inter-machine file locks across local and network file systems. Currently at version 4.1.2, it is actively maintained with updates released as needed. Its core design uses an atomic `mkdir` strategy for lockfile creation, which is more reliable than `open` with `O_EXCL` flags, especially on network file systems (NFS) where `O_EXCL` is prone to race conditions. The library differentiates itself by constantly updating the lockfile's `mtime` (modified time) to accurately check for staleness, a significant improvement over `ctime` (creation time) for long-running processes. Furthermore, it incorporates mechanisms to detect when a lockfile might be compromised due to failed updates or unexpected delays, enhancing overall reliability compared to alternatives.","language":"javascript","status":"active","version":"4.1.2","tags":["javascript","lock","locking","file","lockfile","fs","cross-process"],"install":[{"cmd":"npm install proper-lockfile","imports":["import { lock } from 'proper-lockfile';","import { unlock } from 'proper-lockfile';","import { check } from 'proper-lockfile';"]},{"cmd":"yarn add proper-lockfile","imports":[]},{"cmd":"pnpm add proper-lockfile","imports":[]}],"homepage":null,"github":"https://github.com/moxystudio/node-proper-lockfile","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/proper-lockfile","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/proper-lockfile/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}