windows-mutex
Expose the Windows CreateMutex API to Node.JS.
Installation
windows-mutex
will only compile in Windows machines, so it is advisable
to use the --save-optional
flag and wrap the
require('windows-mutex')
call in a try {} catch {}
block, in case your
code also runs on other platforms.
npm install --save-optional windows-mutex
Usage
; var mutex = 'my-mutex';console;mutex;
Development
Publishing to NPM is automated via CI. As soon as a tag is pushed to the repo, that version will be built and published to NPM.