Skip to content

Xcraft-Inc/node-windows-semaphore

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();

About

Expose the Windows CreateSemaphore API to Node.JS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 58.8%
  • JavaScript 35.3%
  • Python 5.9%