This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

windows-mutex
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/windows-mutex package

0.4.1 • Public • Published

windows-mutex

Build Status

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

import { Mutex } from 'windows-mutex';
 
var mutex = new Mutex('my-mutex');
console.log(mutex.isActive());
mutex.release();

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.

Dependencies (2)

Dev Dependencies (1)

Package Sidebar

Install

npm i windows-mutex

Weekly Downloads

108

Version

0.4.1

License

MIT

Unpacked Size

6.5 kB

Total Files

9

Last publish

Collaborators

  • bpasero
  • deepak_robo
  • joaomoreno.ms