node-proper-lockfile
node-proper-lockfile copied to clipboard
Possibility to pass the lock to another process
My use case: I want to acquire a lock on a directory and, if successful, run a new process which will do some work in this directory and release the lock at the end.
Is unlock(path) the way to achieve this or is the lock linked to the current process?