JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4884
  • Score
    100M100P100Q55021F
  • License MIT

Expose the Windows CreateMutex API to Node.JS

Package Exports

  • windows-mutex

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (windows-mutex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

import { Mutex } from 'windows-mutex';

var mutex = new Mutex();
console.log(mutex.isActive());
mutex.release();