node-windows-semaphore

1.0.0 • Public • Published

node-windows-semaphore

Expose the Windows CreateSemaphore API to Node.JS.

Installation

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

npm install --save-optional node-windows-semaphore

Usage

const { Semaphore } require("node-windows-semaphore");
 
var semaphore = new Semaphore("my-semaphore");
semaphore.release();

Readme

Keywords

none

Package Sidebar

Install

npm i node-windows-semaphore

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

5.09 kB

Total Files

8

Last publish

Collaborators

  • yvessaz
  • nocturnight
  • quarta
  • samlebarbare
  • schroeterm