@nullplatform/k8s-lease-lock
Version:
The **K8SLock** module is a Node.js library designed to provide distributed locking functionality using Kubernetes leases. It allows you to manage locks in a Kubernetes cluster, ensuring that only one client or process can hold a lock at any given time. T
35 lines (33 loc) • 1.04 kB
JSON
{
"name": "@nullplatform/k8s-lease-lock",
"version": "0.2.5",
"description": "The **K8SLock** module is a Node.js library designed to provide distributed locking functionality using Kubernetes leases. It allows you to manage locks in a Kubernetes cluster, ensuring that only one client or process can hold a lock at any given time. This is useful for scenarios where you need to coordinate tasks across multiple instances of your application or ensure exclusive access to shared resources.",
"type": "module",
"main": "index.cjs",
"module": "index.js",
"exports": {
".": {
"import": "./index.js",
"require": "./index.cjs"
}
},
"scripts": {
"test": "NODE_ENV=test NODE_OPTIONS=--experimental-vm-modules jest --forceExit --detectOpenHandles"
},
"author": "",
"license": "MIT",
"dependencies": {
"@kubernetes/client-node": "^1.4.0"
},
"devDependencies": {
"jest": "^29.7.0"
},
"keywords": [
"k8s",
"kubernetes",
"lock",
"lease",
"library",
"module"
]
}