1.1.0 • Published 10 months ago

node-mutex-checker v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Node Mutex Checker

A Node.js addon to check and create mutexes on Windows systems using C++ bindings. This project provides the functionality to check for the existence of a mutex on the system and create a new mutex if needed.

npm i node-mutex-checker

Usage

const { createMutex, checkMutex } = require("node-mutex-checker");

const mutexName = "mutex123";

const created = createMutex(mutexName);
console.log(`Mutex created: ${created}`);

const exists = checkMutex(mutexName);
console.log(`Mutex exists: ${exists}`);
1.1.0

10 months ago

1.0.0

10 months ago