{"library":"synchd","type":"library","category":null,"description":"A lightweight Promise-based mutex library (v1.1.0) that prevents concurrent execution of guarded code sections by queuing calls in order. Similar to node-synchronized but uses Promises natively and includes both TypeScript and Flow type definitions. It offers two main functions: synchd for one-off locking with a scope key, and synchdFn for creating wrapped functions that automatically serialize access. The library is minimal, has no dependencies, and follows a stable release cadence with simple, focused API.","language":"javascript","status":"active","version":"1.1.0","tags":["javascript","mutex","asynchronous","queue","promise"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install synchd","imports":["import { synchd } from 'synchd'","import { synchdFn } from 'synchd'","const synchd = require('synchd'); const {synchd: lock, synchdFn} = synchd;"]},{"cmd":"yarn add synchd","imports":[]},{"cmd":"pnpm add synchd","imports":[]}],"homepage":"https://github.com/Macil/synchd#readme","github":"https://github.com/Macil/synchd","docs":null,"changelog":null,"pypi":null,"npm":"synchd","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}