{"name":"fd-lock","version":"2.0.0","author":{"name":"Holepunch"},"license":"Apache-2.0","_id":"fd-lock@2.0.0","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"homepage":"https://github.com/holepunchto/fd-lock#readme","bugs":{"url":"https://github.com/holepunchto/fd-lock/issues"},"dist":{"shasum":"1ce5b63958720610a37281d4572f617083229676","tarball":"http://registry-npm.ywwl.com/fd-lock/download/fd-lock-2.0.0.tgz","fileCount":4,"integrity":"sha512-HP2uAqFM1y2L9wJhwH13HwRTr/SXlgeciTlFAFfp/6uhuuSKLsLlS7P12rLnh9YfsC8CGjRrqp7v+TQvt5vqxQ==","signatures":[{"sig":"MEUCIBccQH6YVLl+i3Ndka+rYeZlbo4/KQ3IGz4w9dlF41CrAiEA7ItIru2eyESdVT4A0azg+7yihxrg98BtKAUgWxyh29k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13914,"size":5064,"noattachment":false,"key":"/fd-lock/-/fd-lock-2.0.0.tgz"},"exports":{".":"./index.js","./package":"./package.json"},"gitHead":"17a7497f1b8c2d44899c2a9b17729a15d1ac2f89","imports":{"fs":{"bare":"bare-fs","default":"fs"}},"scripts":{"lint":"prettier --check .","test":"npm run lint && npm run test:bare && npm run test:node","format":"prettier --write .","test:bare":"bare test.js","test:node":"node test.js"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"repository":{"url":"git+https://github.com/holepunchto/fd-lock.git","type":"git"},"_npmVersion":"10.9.2","description":"Stateful file descriptor locks for JavaScript","directories":{},"_nodeVersion":"22.16.0","dependencies":{"bare-fs":"^4.5.0","ready-resource":"^1.2.0","resource-on-exit":"^1.0.0","fs-native-extensions":"^1.4.4"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.3.2","prettier":"^3.4.2","prettier-config-holepunch":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fd-lock_2.0.0_1762773989243_0.48773627636511274","host":"s3://npm-registry-packages-npm-production"},"readme":"# fd-lock\n\nStateful file descriptor locks for JavaScript.\n\n```\nnpm i fd-lock\n```\n\n## Usage\n\n```js\nconst FDLock = require('fd-lock')\n\nconst lock = new FDLock(fd, { wait: true })\nawait lock.ready()\n\n// Lock is now held\n\nawait lock.close()\n```\n\n## License\n\nApache-2.0\n","publish_time":1762773989457,"_cnpm_publish_time":1762773989457,"dist-tags":{"latest":"2.2.0"}}