{"library":"mysql-semaphore","type":"library","category":null,"description":"A semaphore handler for Node.js using MySQL as the coordination backend. Current stable version 0.1.1. No recent releases. Provides lock, unlock, and islocked methods via Promises for clustered Node.js environments where you need to ensure only one instance runs a task (e.g., cron jobs). Key differentiators: simple MySQL-based semaphore with no external dependencies beyond mysql package. Known issues: lock name uniqueness is critical to avoid accidental unlocking across applications; no automatic lock cleanup.","language":"javascript","status":"active","version":"0.1.1","tags":["javascript","Semaphore","MySQL","clustered"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install mysql-semaphore","imports":["import Semaphore from 'mysql-semaphore'","const Semaphore = require('mysql-semaphore')","new Semaphore({ host, user, password, database })"]},{"cmd":"yarn add mysql-semaphore","imports":[]},{"cmd":"pnpm add mysql-semaphore","imports":[]}],"homepage":"https://github.com/n8j1s/node-mysql-semaphore#readme","github":"https://github.com/n8j1s/node-mysql-semaphore","docs":null,"changelog":null,"pypi":null,"npm":"mysql-semaphore","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}