node-proper-lockfile icon indicating copy to clipboard operation
node-proper-lockfile copied to clipboard

An inter-process and inter-machine lockfile utility that works on a local or network file system.

Results 19 node-proper-lockfile issues
Sort by recently updated
recently updated
newest added

First of all: thanks for the great lib! I've encountered a weird issue. This works fine even if the file doesn't exist: ```js lockfile.lock('./file.txt'); ``` This however throws errors, when...

We're sometimes running into a situation where a hard system restart causes the system time to jump backwards. This causes locks to remain with an mtime in the future, unable...

This PR contains a quick fix: checking whether the onCompromised option has been defined or not before running the function.

I'm able to write to a file despite the library is working. Here is my "locking" code: ```const lockfile = require('proper-lockfile'); const file = './file.txt'; function delay(ms) { return new...

Ocasionally I get this error, ``` Uncaught TypeError: Cannot read properties of undefined (reading 'updateTimeout') at updateLock (node_modules/proper-lockfile/lib/lockfile.js:104:14) at /home/user2/Nextcloud/projects/plebbit/plebbit-js/node_modules/proper-lockfile/lib/lockfile.js:167:17 at FSReqCallback.oncomplete (node:fs:192:23) at FSReqCallback.callbackTrampoline (node:internal/async_hooks:130:17) ``` Seems like `locks[file]`...

Fixes https://github.com/moxystudio/node-proper-lockfile/issues/111

Consider the following snippet: ```ts const properLockfile = require('proper-lockfile'); // 1 for (let i = 0; i < 1_000_000; i += 1) console.log(i); ``` It take a few seconds to...

When this package is used, we can't exit `node --inspect[-*]` debug server with ctrl-C, or kill it with SIGTERM. This is due to https://github.com/tapjs/signal-exit/issues/71. ```sh 1$ # terminal 1: debug...

Hello! I am trying out this library and I just wanted to check if I am using the library correctly and if this is expected. In the repo below I...