@markusjx/shared_mutex (npm): Shared mutexes for javascript. Can also check if your program is already running.
Keywords: mutex|nodejs|semaphore