synchd
JSON →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.