New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vscode/windows-mutex

Package Overview
Dependencies
Maintainers
7
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vscode/windows-mutex

Expose the Windows CreateMutex API to Node.JS

0.5.0
latest
Source
npm
Version published
Weekly downloads
6.1K
-2.66%
Maintainers
7
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 01 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts