{"_id":"lock-me","_rev":"8-674e8a650226f495a05f0fb70b6c3080","name":"lock-me","description":"Lock files across processes","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"lock-me","version":"1.0.0","description":"Lock files across processes","main":"lib/index.js","jsnext:main":"src/index.js","scripts":{"lint":"aegir-lint","build":"aegir-build --env node","test":"aegir-test --env node","release":"aegir-release --env node","release-minor":"aegir-release --type minor --env node","release-major":"aegir-release --type major --env node","coverage":"aegir-coverage","coverage-publish":"aegir-coverage publish"},"keywords":["fcntl","lock","process"],"author":{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},"license":"MIT","devDependencies":{"aegir":"^8.1.2","chai":"^3.5.0"},"dependencies":{"async":"^2.0.1","find-process":"^1.0.4","nodeify":"^1.0.0","once":"^1.4.0","fs-ext":"github:caspertech/node-fs-ext#master"},"optionalDependencies":{"fs-ext":"github:caspertech/node-fs-ext#master"},"contributors":[{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"}],"gitHead":"e5f2138105ed3294082eb39555654bafbf24334b","_id":"lock-me@1.0.0","_shasum":"f1cc3d0850d940d740d9033b3d3074b8ac8007f2","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.6.0","_npmUser":{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"},"dist":{"shasum":"f1cc3d0850d940d740d9033b3d3074b8ac8007f2","tarball":"https://registry.npmjs.org/lock-me/-/lock-me-1.0.0.tgz","integrity":"sha512-Qx/RhmNxq2Wk57Uucp50nobI9sefUzm1BDhHiBT6LfejHwxE8W3v8tS8uZsAJ51Fg2SBMp0Hdj5w5UCAiNEppA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCt/n4OAMwUMKJjjcjGjZBk2PCwRhuUx1Q70rvL8aMe3QIhALeHxjEy9bVM34+myyEjBfR8p6ZF0CAy/NJb3JNFgFou"}]},"maintainers":[{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lock-me-1.0.0.tgz_1475244767801_0.6404650856275111"},"directories":{}},"1.0.1":{"name":"lock-me","version":"1.0.1","description":"Lock files across processes","main":"lib/index.js","jsnext:main":"src/index.js","scripts":{"lint":"aegir-lint","build":"aegir-build --env node","test":"aegir-test --env node","release":"aegir-release --env node","release-minor":"aegir-release --type minor --env node","release-major":"aegir-release --type major --env node","coverage":"aegir-coverage","coverage-publish":"aegir-coverage publish"},"keywords":["fcntl","lock","process"],"author":{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},"license":"MIT","devDependencies":{"aegir":"^8.1.2","chai":"^3.5.0"},"dependencies":{"async":"^2.0.1","find-process":"^1.0.4","nodeify":"^1.0.0","once":"^1.4.0","fs-ext":"github:caspertech/node-fs-ext#master"},"optionalDependencies":{"fs-ext":"github:caspertech/node-fs-ext#master"},"contributors":[{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/dignifiedquire/lock-me.git"},"bugs":{"url":"https://github.com/dignifiedquire/lock-me/issues"},"homepage":"https://github.com/dignifiedquire/lock-me","gitHead":"94607681e50c8c046ff59ec99d42c006a1eadaf0","_id":"lock-me@1.0.1","_shasum":"6effdf82803cc983d21dc44dcab3c3bea6b8be14","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.6.0","_npmUser":{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"},"dist":{"shasum":"6effdf82803cc983d21dc44dcab3c3bea6b8be14","tarball":"https://registry.npmjs.org/lock-me/-/lock-me-1.0.1.tgz","integrity":"sha512-JImeNAR6us+xXFOD5x9aiKG+e2LqP2lO38obD5zWQSGnZs/Wnqc418K8+d0mLvfgtgsJ2ibZNbYHTHinVQX7tg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnsPQaIXb7dRXoxpSZL3AqYkiWMZnQNUAjSlkmsKQCrgIgLmpJyEiHckxr2/WTlNwzv7OTL8cGx3ma0UW2uI+pKcA="}]},"maintainers":[{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lock-me-1.0.1.tgz_1475244899781_0.4401344864163548"},"directories":{}},"1.0.2":{"name":"lock-me","version":"1.0.2","description":"Lock files across processes","main":"src/index.js","scripts":{"lint":"aegir-lint","test":"aegir-test --env node","release":"aegir-release --env node","release-minor":"aegir-release --type minor --env node","release-major":"aegir-release --type major --env node","coverage":"aegir-coverage","coverage-publish":"aegir-coverage publish"},"keywords":["fcntl","lock","process"],"author":{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},"license":"MIT","devDependencies":{"aegir":"^10.0.0","chai":"^3.5.0"},"dependencies":{"async":"^2.1.5","find-process":"^1.0.5","nodeify":"^1.0.1","once":"^1.4.0","fs-ext":"github:baudehlo/node-fs-ext#master"},"optionalDependencies":{"fs-ext":"github:baudehlo/node-fs-ext#master"},"contributors":[{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/dignifiedquire/lock-me.git"},"bugs":{"url":"https://github.com/dignifiedquire/lock-me/issues"},"homepage":"https://github.com/dignifiedquire/lock-me","gitHead":"3dd3c38d9b0fedbc09b06507de81324d48a0e4b7","_id":"lock-me@1.0.2","_shasum":"0e705ffa3450b3d1830651797cacc0cd0f34a8e0","_from":".","_npmVersion":"4.3.0","_nodeVersion":"7.2.1","_npmUser":{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"},"dist":{"shasum":"0e705ffa3450b3d1830651797cacc0cd0f34a8e0","tarball":"https://registry.npmjs.org/lock-me/-/lock-me-1.0.2.tgz","integrity":"sha512-7cpHJdXBQ5Mp3FA2gsCSUnw47tQ9pSq47bOFeQXArsOClP26VYUtlLMXuMJtbo+Kf9oeuMOwgY5EAgyZCQZYsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHtmbSwDZO4zM/xTJgsjqZho78BpYiX0gR5xFbRMf4eNAiEA9YwWH+XNgfTOyy1y5xtp/0jhaDiSNqCslYXIim0h7XE="}]},"maintainers":[{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lock-me-1.0.2.tgz_1489437075037_0.9451057431288064"},"directories":{}},"1.0.3":{"name":"lock-me","version":"1.0.3","description":"Lock files across processes","main":"src/index.js","scripts":{"lint":"aegir lint","test":"aegir test --target node","release":"aegir release --target node","release-minor":"aegir release --type minor --target node","release-major":"aegir release --type major --target node","coverage":"aegir coverage"},"keywords":["fcntl","lock","process"],"author":{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},"license":"MIT","devDependencies":{"aegir":"^12.0.8","chai":"^3.5.0"},"dependencies":{"async":"^2.1.5","find-process":"^1.0.5","nodeify":"^1.0.1","once":"^1.4.0","fs-ext":"github:baudehlo/node-fs-ext#master"},"optionalDependencies":{"fs-ext":"github:baudehlo/node-fs-ext#master"},"contributors":[{"name":"Expyron","email":"5100376+Expyron@users.noreply.github.com"},{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/dignifiedquire/lock-me.git"},"bugs":{"url":"https://github.com/dignifiedquire/lock-me/issues"},"homepage":"https://github.com/dignifiedquire/lock-me","gitHead":"82f6183d2cd1f1a1671a90c396bc9059787f1458","_id":"lock-me@1.0.3","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"},"dist":{"integrity":"sha512-8Oc/h8ltAtEvq4+qZvqpbopWKEWFmcoI3cVoEWnlVWsoBGihwtw3abO3T4hERswRS0aHY1rIfqnIjo2uBqqlXA==","shasum":"87169a7160dd551c759a4d29eb00e55df050df5c","tarball":"https://registry.npmjs.org/lock-me/-/lock-me-1.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGK8U4UIZ9UFEeV+Ai+cvTL/uaY29pNYv1amgrYOq7XyAiEAk9ifCbtY8IdFJ4IW8e+cOLrXHURCmSrsPBzD9+nuWj8="}]},"maintainers":[{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lock-me-1.0.3.tgz_1508260748397_0.8723787979688495"},"directories":{}},"1.0.4":{"name":"lock-me","version":"1.0.4","description":"Lock files across processes","main":"src/index.js","scripts":{"lint":"aegir lint","test":"aegir test --target node","release":"aegir release --target node","release-minor":"aegir release --type minor --target node","release-major":"aegir release --type major --target node","coverage":"aegir coverage"},"keywords":["fcntl","lock","process"],"author":{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},"license":"MIT","devDependencies":{"aegir":"^12.0.8","chai":"^3.5.0"},"dependencies":{"async":"^2.1.5","find-process":"^1.0.5","nodeify":"^1.0.1","once":"^1.4.0","fs-ext":"github:baudehlo/node-fs-ext#master"},"optionalDependencies":{"fs-ext":"github:baudehlo/node-fs-ext#master"},"contributors":[{"name":"Expyron","email":"5100376+Expyron@users.noreply.github.com"},{"name":"Jacob Heun","email":"jacobheun@gmail.com"},{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/dignifiedquire/lock-me.git"},"bugs":{"url":"https://github.com/dignifiedquire/lock-me/issues"},"homepage":"https://github.com/dignifiedquire/lock-me","gitHead":"e4260d587f36dc6c083f40da89759390cf500e52","_id":"lock-me@1.0.4","_npmVersion":"6.0.0","_nodeVersion":"9.7.1","_npmUser":{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"},"dist":{"integrity":"sha512-PH/uZMCtlTfiPcKnNVc8cF57Jrc9uTcil4qL6f1faTWV71J3ym8LIlaO385BtoC3MQb+jt3t2R8SnHxcQ5pafw==","shasum":"a0344d1681b136f32425c7a55a7be30bc50816a4","tarball":"https://registry.npmjs.org/lock-me/-/lock-me-1.0.4.tgz","fileCount":14,"unpackedSize":587886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbA/UYCRA9TVsSAnZWagAADgYP/1Um+FqKGdZ6v08zYjVz\nNkKM0ZJvqrE5ZTa+AvlESOWvLuHe0gdbZIt1TKmKWKlTRDjIYTdNU8+dHOJK\nC6vzW9k8L2n1NDTYC0K7cPnt7Xdg1iyD/tdMt6SDBn2bIHCR6wEECt0zBgKH\nfvOlj+gBx8bFzqfHyTtIoMcCrprXcF/LYpb6sqDkW5WjwCn7BMdWMTMM9NYP\nMsFUuiNLYLHmvZECHvstFFmMyuDktrkamvMkIA7CaNHLUrK1CbhV8T4UljKK\no+ujAIyVQDviXoU8vV9S+swIzs+hqiHTrbI/AxF8M/W8+mwm3FhRX8wI53bP\nnv7z0rG9oymsPLisNVzmo9MwtKljclBx9AGGyvcTWtHGB/lC5L4PtlZBky51\nwoRZTj/MIZlSLIBoGub70B0WXf2J3vcL4s2eGVQ69zK0voJ+ckhSBGsIuyhW\nBXtHXc7iYrV4bHcrLcor7KD6zCgXKVcjm4tkGGOn1hW3uv7EgBwYTUa1AjII\nLjeuwGabld9ozemIpjT0nAZ823CP1S8FUhA0f/BD70Gq+XLBGtgdT7WZX/97\nBKZq39MekoGkHBHRt7HY2u+FAYz7kE1lc+YvYWCkeSE94ZIL3kx+ECil1yzv\nxCanaF52HMBZy/Mr1JEfUh0o5dvT9mAJDNFWmWQt81hbvDroJhpRU7dTQmaZ\nzVr9\r\n=A8DW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXe3EdHs743U91H7J4xctnwLPgsqhbsAx2Oqo+nwiQqAIhAMNEg9b+ityhRRriPy1vvB5XPpr1740ehTgzV53jOhT/"}]},"maintainers":[{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lock-me_1.0.4_1526986007446_0.16489482131752342"},"_hasShrinkwrap":false}},"readme":"# lock-me\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Coverage Status](https://coveralls.io/repos/github/dignifiedquire/lock-me/badge.svg?branch=master)](https://coveralls.io/github/dignifiedquire/lock-me?branch=master)\n[![Travis CI](https://travis-ci.org/dignifiedquire/lock-me.svg?branch=master)](https://travis-ci.org/dignifiedquire/lock-me)\n[![Circle CI](https://circleci.com/gh/dignifiedquire/lock-me.svg?style=svg)](https://circleci.com/gh/dignifiedquire/lock-me)\n[![Dependency Status](https://david-dm.org/dignifiedquire/lock-me.svg?style=flat-square)](https://david-dm.org/dignifiedquire/lock-me)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n\n\n> Lock files across processes. Inspired by [go4 lock](https://github.com/camlistore/go4/blob/master/lock)\n\n## Table of Contents\n\n- [Install](#install)\n- [Usage](#usage)\n- [Contribute](#contribute)\n- [License](#license)\n\n## Install\n\n```bash\n$ npm install lock-me\n```\n\n## Usage\n\n```js\nconst Lock = require('lock-me')\nconst mylock = new Lock()\n\nconst lockfile = 'me.lock'\n\nlock(lockfile, (err, lk) => {\n  if (err) throw err\n  // 'me.lock' is now locked\n\n  lk.close((err) => {\n    if (err) throw err\n    // 'me.lock' is no longer locked\n  })\n})\n```\n\nWhen the process dies, the lock is released so no stale lock files remain.\nIf they do remain, `my-lock` will understand it and delete the stale file.\n\n## Contribute\n\nPRs accepted.\n\nSmall note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nMIT © Friedel Ziegelmayer\n","maintainers":[{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"time":{"modified":"2022-06-19T13:25:48.021Z","created":"2016-09-30T14:12:49.799Z","1.0.0":"2016-09-30T14:12:49.799Z","1.0.1":"2016-09-30T14:15:01.349Z","1.0.2":"2017-03-13T20:31:17.291Z","1.0.3":"2017-10-17T17:19:09.747Z","1.0.4":"2018-05-22T10:46:47.571Z"},"keywords":["fcntl","lock","process"],"contributors":[{"name":"Expyron","email":"5100376+Expyron@users.noreply.github.com"},{"name":"Jacob Heun","email":"jacobheun@gmail.com"},{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"author":{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/dignifiedquire/lock-me","repository":{"type":"git","url":"git+https://github.com/dignifiedquire/lock-me.git"},"bugs":{"url":"https://github.com/dignifiedquire/lock-me/issues"}}