0.5.0 • Published 4 months ago

@vscode/windows-mutex v0.5.0

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

windows-mutex

Build Status

Build Status

npm version

Expose the Windows CreateMutex API to Node.JS.

Installation

@vscode/windows-mutex will only compile in Windows machines, so it is advisable to use the --save-optional flag and wrap the require('@vscode/windows-mutex') call in a try {} catch {} block, in case your code also runs on other platforms.

npm install --save-optional @vscode/windows-mutex

Usage

import { Mutex } from '@vscode/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.

0.5.0

4 months ago

0.4.4

12 months ago

0.4.3

1 year ago

0.4.2

1 year ago