| 1 |
{ |
| 2 |
"_id": "infer-owner", |
| 3 |
"_rev": "17-b6c4d4cf244ec0592e72684ca2557667", |
| 4 |
"name": "infer-owner", |
| 5 |
"dist-tags": { |
| 6 |
"latest": "1.0.4" |
| 7 |
}, |
| 8 |
"versions": { |
| 9 |
"1.0.3": { |
| 10 |
"name": "infer-owner", |
| 11 |
"version": "1.0.3", |
| 12 |
"description": "Infer the owner of a path based on the owner of its nearest existing parent", |
| 13 |
"author": { |
| 14 |
"name": "Isaac Z. Schlueter", |
| 15 |
"email": "[email protected]", |
| 16 |
"url": "https://izs.me" |
| 17 |
}, |
| 18 |
"license": "ISC", |
| 19 |
"scripts": { |
| 20 |
"test": "tap -J test/*.js --100", |
| 21 |
"snap": "TAP_SNAPSHOT=1 tap -J test/*.js --100", |
| 22 |
"preversion": "npm test", |
| 23 |
"postversion": "npm publish", |
| 24 |
"postpublish": "git push origin --follow-tags" |
| 25 |
}, |
| 26 |
"devDependencies": { |
| 27 |
"mutate-fs": "^2.1.1", |
| 28 |
"tap": "^12.4.2" |
| 29 |
}, |
| 30 |
"main": "index.js", |
| 31 |
"repository": { |
| 32 |
"type": "git", |
| 33 |
"url": "git+https://github.com/npm/infer-owner.git" |
| 34 |
}, |
| 35 |
"publishConfig": { |
| 36 |
"access": "public" |
| 37 |
}, |
| 38 |
"gitHead": "0d0729db142c6401963e97a136c7d29ecc55746a", |
| 39 |
"bugs": { |
| 40 |
"url": "https://github.com/npm/infer-owner/issues" |
| 41 |
}, |
| 42 |
"homepage": "https://github.com/npm/infer-owner#readme", |
| 43 |
"_id": "[email protected]", |
| 44 |
"_nodeVersion": "10.16.0", |
| 45 |
"_npmVersion": "6.9.0", |
| 46 |
"dist": { |
| 47 |
"integrity": "sha512-E/a+pKtYg72HufDVF9FnA2NPeNYLAnAN/wrIbUnCJVz2JvZmj67b2Tw2Mxz0vugWBmRVhb2XHk26ZQIMF0Irjg==", |
| 48 |
"shasum": "38d030afce90f1759c16b783e841522cb8995656", |
| 49 |
"tarball": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.3.tgz", |
| 50 |
"fileCount": 7, |
| 51 |
"unpackedSize": 82597, |
| 52 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdMk2DCRA9TVsSAnZWagAAqIgP/0a8cCxAGwJCPjUhhkoe\njUTjX//US3Eh7Iu+/9hg1q8Z9JjzOFSgZf2EY+tHtmqXdu8M68RmQr5s+UTU\nA87pnXdu2FmzRpPeZnJJBiI7UuqbTPRwvbhSA3W2+Eubp+7MrYpBUrwLU+Cj\nymqDFYFUQeyJ6JVpmWJGRhT0YIYUVypiQgZy5eqcnZkE1bvMbF5UCH57kiiv\nJ2JOux58SqRka/4E7N4KXVVBZnSTNwPxqLeLGerdbQ9F8PSKJGnrGnECxZPy\nJXWRMsKtMbP6VZe/XljXphj++C9t+ULVWSpZxnWeSQGXqyVBXoJsAY6a7oVG\nAVkSdi3M8DQSu+C9vRM582HNFF1m9RpQUBBujWO5ngQcOzaGuXZbuBWQh9he\nkbTNWrVzaDbGTKnoAI5gIgb5K315k5tGQ8wSKcQgWeuP/MOaTFkB4AXDrtNq\nkW3oBrzai9stp9VVyvNhPdwgyDVJ/aT6+bMx0XVFUfJ3W5h66BgW5YSz3G7Y\nbTGFh9rfbBHTNMm420u/TaJ5MRKAJ/oIfAMyN38J2hl3/n60mPji5Otw82ny\n7X0Rol7ELH73034vjhBhl6eDNAzeFf0b02K/LiDe/lkxc3uwwRcQBP3wSgL1\nHekY/CnvOVrpo2QtVt/nEwyjnmqkgXxmGVR6O9S/Na7zFI7NaU0+gGoaGb7f\npITv\r\n=RkTF\r\n-----END PGP SIGNATURE-----\r\n" |
| 53 |
}, |
| 54 |
"maintainers": [ |
| 55 |
{ |
| 56 |
"name": "isaacs", |
| 57 |
"email": "[email protected]" |
| 58 |
} |
| 59 |
], |
| 60 |
"_npmUser": { |
| 61 |
"name": "isaacs", |
| 62 |
"email": "[email protected]" |
| 63 |
}, |
| 64 |
"directories": {}, |
| 65 |
"_npmOperationalInternal": { |
| 66 |
"host": "s3://npm-registry-packages", |
| 67 |
"tmp": "tmp/infer-owner_1.0.3_1563577731234_0.6947691890893826" |
| 68 |
}, |
| 69 |
"_hasShrinkwrap": false |
| 70 |
}, |
| 71 |
"1.0.4": { |
| 72 |
"name": "infer-owner", |
| 73 |
"version": "1.0.4", |
| 74 |
"description": "Infer the owner of a path based on the owner of its nearest existing parent", |
| 75 |
"author": { |
| 76 |
"name": "Isaac Z. Schlueter", |
| 77 |
"email": "[email protected]", |
| 78 |
"url": "https://izs.me" |
| 79 |
}, |
| 80 |
"license": "ISC", |
| 81 |
"scripts": { |
| 82 |
"test": "tap -J test/*.js --100", |
| 83 |
"snap": "TAP_SNAPSHOT=1 tap -J test/*.js --100", |
| 84 |
"preversion": "npm test", |
| 85 |
"postversion": "npm publish", |
| 86 |
"postpublish": "git push origin --follow-tags" |
| 87 |
}, |
| 88 |
"devDependencies": { |
| 89 |
"mutate-fs": "^2.1.1", |
| 90 |
"tap": "^12.4.2" |
| 91 |
}, |
| 92 |
"main": "index.js", |
| 93 |
"repository": { |
| 94 |
"type": "git", |
| 95 |
"url": "git+https://github.com/npm/infer-owner.git" |
| 96 |
}, |
| 97 |
"publishConfig": { |
| 98 |
"access": "public" |
| 99 |
}, |
| 100 |
"gitHead": "264706f28c1bd50c83ecee87e3ff794bf75478f2", |
| 101 |
"bugs": { |
| 102 |
"url": "https://github.com/npm/infer-owner/issues" |
| 103 |
}, |
| 104 |
"homepage": "https://github.com/npm/infer-owner#readme", |
| 105 |
"_id": "[email protected]", |
| 106 |
"_nodeVersion": "10.16.0", |
| 107 |
"_npmVersion": "6.9.0", |
| 108 |
"dist": { |
| 109 |
"integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==", |
| 110 |
"shasum": "c4cefcaa8e51051c2a40ba2ce8a3d27295af9467", |
| 111 |
"tarball": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz", |
| 112 |
"fileCount": 4, |
| 113 |
"unpackedSize": 4290, |
| 114 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdMk6DCRA9TVsSAnZWagAAX1QQAJwpFKxPcykGPXK8B/ft\nO67WidmVuHygLhdtAj2YlKgZUv3eAkdDNqofh7hFI/GccqWWHptLE1KyjVdi\nZRKUet69TRmEwD1WjROCF4yTSNdU96orw9KWSO7vr+/7a9EED5Ff76eDv5S4\nLiWxGBGIUch7EqCjmCsmICtU54bnI3xPrzTlAwO1auw4st0BCK48NA/v/7Pm\nM+pzmO4gNqlvk1CLKvjFgDbDPJkVirFLoIVM6cz9VKGLW8foscj3LCvbsC0e\nLgSvXp5enJMiZ6Y1n/Jo0roaq7sxeL9Rb0+Oo5bumKZtcRtbLbFZwgPekNwD\nRiYdQJOXaYvIE04AX1c/b6zPYvyD5wKOHfKpZKdAKU8tjKf8B9ATEe7q+ZFl\nB4pE3+5Yxlydtopg/SoR9s+ex/LW30c/p0WsqD/s5bxM9vN5EBWA2+wUH4nO\nene1AohsNGODJS7o6qptZLP6TSVr7VIs1e3Dfh9JXNZe11tN/Dht2r6+hrWO\n+UdZ3Wwkd3CDj6KXSTG7rgsxnhtO6lJC7CRYlET8vpFHuyLnuemRUyJjFB4W\nMtBtld8B4u6JY6tLUfqQhLSHlXc8arAHG+S5SzQNtwOu1yniGfSLBRf0n3zq\nj06AFTiCl4+0nLkWUQPlQmk76q8fs56XgKqt6K5UwYjd321WvQZgZaXLFD8m\n4J3V\r\n=3pII\r\n-----END PGP SIGNATURE-----\r\n" |
| 115 |
}, |
| 116 |
"maintainers": [ |
| 117 |
{ |
| 118 |
"email": "[email protected]", |
| 119 |
"name": "adam_baldwin" |
| 120 |
}, |
| 121 |
{ |
| 122 |
"email": "[email protected]", |
| 123 |
"name": "ahmadnassri" |
| 124 |
}, |
| 125 |
{ |
| 126 |
"email": "[email protected]", |
| 127 |
"name": "isaacs" |
| 128 |
} |
| 129 |
], |
| 130 |
"_npmUser": { |
| 131 |
"name": "isaacs", |
| 132 |
"email": "[email protected]" |
| 133 |
}, |
| 134 |
"directories": {}, |
| 135 |
"_npmOperationalInternal": { |
| 136 |
"host": "s3://npm-registry-packages", |
| 137 |
"tmp": "tmp/infer-owner_1.0.4_1563577987148_0.9732602885812718" |
| 138 |
}, |
| 139 |
"_hasShrinkwrap": false |
| 140 |
} |
| 141 |
}, |
| 142 |
"time": { |
| 143 |
"created": "2019-07-19T23:08:51.021Z", |
| 144 |
"1.0.3": "2019-07-19T23:08:51.367Z", |
| 145 |
"modified": "2020-10-19T13:49:53.172Z", |
| 146 |
"1.0.4": "2019-07-19T23:13:07.339Z" |
| 147 |
}, |
| 148 |
"maintainers": [ |
| 149 |
{ |
| 150 |
"email": "[email protected]", |
| 151 |
"name": "nlf" |
| 152 |
}, |
| 153 |
{ |
| 154 |
"email": "[email protected]", |
| 155 |
"name": "ruyadorno" |
| 156 |
}, |
| 157 |
{ |
| 158 |
"email": "[email protected]", |
| 159 |
"name": "darcyclarke" |
| 160 |
}, |
| 161 |
{ |
| 162 |
"email": "[email protected]", |
| 163 |
"name": "isaacs" |
| 164 |
} |
| 165 |
], |
| 166 |
"description": "Infer the owner of a path based on the owner of its nearest existing parent", |
| 167 |
"homepage": "https://github.com/npm/infer-owner#readme", |
| 168 |
"repository": { |
| 169 |
"type": "git", |
| 170 |
"url": "git+https://github.com/npm/infer-owner.git" |
| 171 |
}, |
| 172 |
"author": { |
| 173 |
"name": "Isaac Z. Schlueter", |
| 174 |
"email": "[email protected]", |
| 175 |
"url": "https://izs.me" |
| 176 |
}, |
| 177 |
"bugs": { |
| 178 |
"url": "https://github.com/npm/infer-owner/issues" |
| 179 |
}, |
| 180 |
"license": "ISC", |
| 181 |
"readme": "# infer-owner\n\nInfer the owner of a path based on the owner of its nearest existing parent\n\n## USAGE\n\n```js\nconst inferOwner = require('infer-owner')\n\ninferOwner('/some/cache/folder/file').then(owner => {\n // owner is {uid, gid} that should be attached to\n // the /some/cache/folder/file, based on ownership\n // of /some/cache/folder, /some/cache, /some, or /,\n // whichever is the first to exist\n})\n\n// same, but not async\nconst owner = inferOwner.sync('/some/cache/folder/file')\n\n// results are cached! to reset the cache (eg, to change\n// permissions for whatever reason), do this:\ninferOwner.clearCache()\n```\n\nThis module endeavors to be as performant as possible. Parallel requests\nfor ownership of the same path will only stat the directories one time.\n\n## API\n\n* `inferOwner(path) -> Promise<{ uid, gid }>`\n\n If the path exists, return its uid and gid. If it does not, look to\n its parent, then its grandparent, and so on.\n\n* `inferOwner(path) -> { uid, gid }`\n\n Sync form of `inferOwner(path)`.\n\n* `inferOwner.clearCache()`\n\n Delete all cached ownership information and in-flight tracking.\n", |
| 182 |
"readmeFilename": "README.md" |
| 183 |
} |