| 1 |
{ |
| 2 |
"_id": "escalade", |
| 3 |
"_rev": "7-d9044a760a2fced0fb41c1d00270885c", |
| 4 |
"name": "escalade", |
| 5 |
"dist-tags": { |
| 6 |
"latest": "3.1.1" |
| 7 |
}, |
| 8 |
"versions": { |
| 9 |
"0.0.0": { |
| 10 |
"name": "escalade", |
| 11 |
"version": "0.0.0", |
| 12 |
"repository": { |
| 13 |
"type": "git", |
| 14 |
"url": "git+https://github.com/lukeed/escalade.git" |
| 15 |
}, |
| 16 |
"description": "Scale parent directories", |
| 17 |
"module": "dist/index.mjs", |
| 18 |
"main": "dist/index.js", |
| 19 |
"types": "index.d.ts", |
| 20 |
"license": "MIT", |
| 21 |
"author": { |
| 22 |
"name": "Luke Edwards", |
| 23 |
"email": "[email protected]", |
| 24 |
"url": "https://lukeed.com" |
| 25 |
}, |
| 26 |
"engines": { |
| 27 |
"node": ">=8" |
| 28 |
}, |
| 29 |
"scripts": { |
| 30 |
"build": "bundt", |
| 31 |
"pretest": "npm run build", |
| 32 |
"test": "uvu -r esm test -i fixtures" |
| 33 |
}, |
| 34 |
"keywords": [], |
| 35 |
"devDependencies": { |
| 36 |
"bundt": "1.0.1", |
| 37 |
"esm": "3.2.25", |
| 38 |
"uvu": "0.0.11" |
| 39 |
}, |
| 40 |
"bugs": { |
| 41 |
"url": "https://github.com/lukeed/escalade/issues" |
| 42 |
}, |
| 43 |
"homepage": "https://github.com/lukeed/escalade#readme", |
| 44 |
"_id": "[email protected]", |
| 45 |
"_nodeVersion": "12.18.0", |
| 46 |
"_npmVersion": "6.14.4", |
| 47 |
"dist": { |
| 48 |
"integrity": "sha512-ZD1iWAfRJJRP14vD+OPxdnLgpK7ZY+4qUUx1mtAiE247uhChVGutIGVxMUSCAeIRZagEhj4AOVnM9rOFYSJFcg==", |
| 49 |
"shasum": "6417618198af1c944a48940b06c19a58d6df2dd4", |
| 50 |
"tarball": "https://registry.npmjs.org/escalade/-/escalade-0.0.0.tgz", |
| 51 |
"fileCount": 3, |
| 52 |
"unpackedSize": 1762, |
| 53 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7E4yCRA9TVsSAnZWagAA3+MP/Aqi+0zPtLJ250iavBob\nezKMELaAQ317VdSBi+TB1uYWw0r3fDjVNMWj9IVCsUHygc1ZFZoFmBrdYby2\nmKyF+MUypg4QhVwCLKkEDuhSQnoEtQKg2Fbps/yi+qUqgVYQiBaoB6wdR7QL\nSA53IpvhbZPQIf8JliHH1CXoGUYGHZYOuEKBUpLpcp7Pd2hHtkYVLEc2gztm\nxJVYpYe7cW9huI8v1HRJ310+EYLDbQWWAhPFsZ/6WpeWHNTWU0EPoyk87YcZ\nU/8eNQjhd2LiFVemrY4J5hh37uRU9+9JpQ7W2atFSk4bEyx/3pI+sqinL75b\ndriY1CBGmrMCHs3NcrLBgwDPQ/lJlmEEYaVNW6UHdNZyCE81idEl08L/X/aO\nJXK0O7NyBDMZL96QsHS46GQWOCaDV0VaZO52baiHNicPFxDQ8C+VJzr1bHcl\ncIMTUj8y2DDvw/iXDYsbz9JaDXfS/GMVGHoHfE3nv0yqtevYQtikDoPigPfX\nBqeHC74e85GJc3j959kPQwAlj6OvYMgfWhUfuXcX64y1tU4trTY51bIEP1Ei\nBmFGOvFvLQpguDlw6ds2dOiiqby+UwE8JnoxjEIEP5OnY05TUm+ldpxT6riR\nj4TCXNry2bpwsDaRnC3Zx/YoWTj7sgEVVWGadP3krcXP7dYBtMIds3Ul4Eie\nFuA0\r\n=SMGu\r\n-----END PGP SIGNATURE-----\r\n" |
| 54 |
}, |
| 55 |
"maintainers": [ |
| 56 |
{ |
| 57 |
"name": "lukeed", |
| 58 |
"email": "[email protected]" |
| 59 |
} |
| 60 |
], |
| 61 |
"_npmUser": { |
| 62 |
"name": "lukeed", |
| 63 |
"email": "[email protected]" |
| 64 |
}, |
| 65 |
"directories": {}, |
| 66 |
"_npmOperationalInternal": { |
| 67 |
"host": "s3://npm-registry-packages", |
| 68 |
"tmp": "tmp/escalade_0.0.0_1592544817862_0.7997921389561231" |
| 69 |
}, |
| 70 |
"_hasShrinkwrap": false |
| 71 |
}, |
| 72 |
"1.0.0": { |
| 73 |
"name": "escalade", |
| 74 |
"version": "1.0.0", |
| 75 |
"repository": { |
| 76 |
"type": "git", |
| 77 |
"url": "git+https://github.com/lukeed/escalade.git" |
| 78 |
}, |
| 79 |
"description": "A tiny (186B to 214B) and fast utility to ascend parent directories", |
| 80 |
"module": "dist/index.mjs", |
| 81 |
"main": "dist/index.js", |
| 82 |
"types": "index.d.ts", |
| 83 |
"license": "MIT", |
| 84 |
"author": { |
| 85 |
"name": "Luke Edwards", |
| 86 |
"email": "[email protected]", |
| 87 |
"url": "https://lukeed.com" |
| 88 |
}, |
| 89 |
"exports": { |
| 90 |
"./": { |
| 91 |
"import": "./dist/index.mjs", |
| 92 |
"require": "./dist/index.js" |
| 93 |
}, |
| 94 |
"./sync": { |
| 95 |
"import": "./sync/index.mjs", |
| 96 |
"require": "./sync/index.js" |
| 97 |
} |
| 98 |
}, |
| 99 |
"modes": { |
| 100 |
"sync": "src/sync.js", |
| 101 |
"default": "src/async.js" |
| 102 |
}, |
| 103 |
"engines": { |
| 104 |
"node": ">=6" |
| 105 |
}, |
| 106 |
"scripts": { |
| 107 |
"build": "bundt", |
| 108 |
"pretest": "npm run build", |
| 109 |
"test": "uvu -r esm test -i fixtures" |
| 110 |
}, |
| 111 |
"keywords": [ |
| 112 |
"find", |
| 113 |
"parent", |
| 114 |
"parents", |
| 115 |
"directory", |
| 116 |
"search", |
| 117 |
"walk" |
| 118 |
], |
| 119 |
"devDependencies": { |
| 120 |
"bundt": "1.0.1", |
| 121 |
"esm": "3.2.25", |
| 122 |
"uvu": "0.0.11" |
| 123 |
}, |
| 124 |
"gitHead": "97381e2b163b3ba3617eea146844dc74c491e25d", |
| 125 |
"bugs": { |
| 126 |
"url": "https://github.com/lukeed/escalade/issues" |
| 127 |
}, |
| 128 |
"homepage": "https://github.com/lukeed/escalade#readme", |
| 129 |
"_id": "[email protected]", |
| 130 |
"_npmVersion": "6.4.1", |
| 131 |
"_nodeVersion": "10.13.0", |
| 132 |
"_npmUser": { |
| 133 |
"name": "lukeed", |
| 134 |
"email": "[email protected]" |
| 135 |
}, |
| 136 |
"dist": { |
| 137 |
"integrity": "sha512-WvKmjtpItFC/A7e7XmgTv1bjoJRGirq6fTiV5MK9bmqD0fzWnH1AaVEby0dd3m9XVESNLrnPemSn5G9xcJn1UQ==", |
| 138 |
"shasum": "eba62cba84324dd46dc2ae4fbc15dd5088813e13", |
| 139 |
"tarball": "https://registry.npmjs.org/escalade/-/escalade-1.0.0.tgz", |
| 140 |
"fileCount": 8, |
| 141 |
"unpackedSize": 10821, |
| 142 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7Q+QCRA9TVsSAnZWagAA2wgP+gNL1UlDf5AsEuWrIv2X\n+7xAId1UBdYLnOTB3EVUUuj3gllZR2DOazcE5e/U8npVJRFvSz+lImKeDoMA\nPAZ/hkbPEqElBUEYR7dt2J4jEFdYdv6H76x050lKyIXzbci4jh0Db72VPaX3\nYFvMXU7tH72pC8HBra6Zv3E3ItK6vSMPjDu28JGk+vL2oUhDk690iOApftUA\n8YQW0wQYrOTWDImAg1bzkcA+DZQ+YI0ftumuUkqMgA7r6j5IerJPAWIWGKNU\nrrsY1sZssR6BNeZlqFBOr84AdqqpAJxx5oAmRpXljP2zRMcx7l9c7FVlPSh4\nDBdQGeFb2ixAWv/FNSlR9R8ecOaWVCXMa9M8ycT0YQIgb1QsNRSYU0pYQx9G\nol74zW1CjjnYMnoMX7QUSA4MxRMLp0kZp6MbwN10B/8JK0B1PvcjjBIH1P5u\nN1l4ahV6wrjOwDMogoLN9PiIpP/4Fx2pDJpZJdP34kr4GS7taXYPUxzvDFb0\nJBMCFwT6NX4XPuqX5SZ3/fuLL5Cblj5WRu5khVfqiA2tvVJVenT38xDN4Me5\ni3Hd3mvno1WCLMY1UTt5VxkiLgov0CJNLGBvXBrPnFiNLD1mvTM9AoAxaOE+\nIx1pOfxgT1kpBEbKQSVckdp7R+IhAhGI0mviJNR3SNE2g+dH1M/dy3o6TFOF\nOQrA\r\n=B+vT\r\n-----END PGP SIGNATURE-----\r\n" |
| 143 |
}, |
| 144 |
"maintainers": [ |
| 145 |
{ |
| 146 |
"name": "lukeed", |
| 147 |
"email": "[email protected]" |
| 148 |
} |
| 149 |
], |
| 150 |
"directories": {}, |
| 151 |
"_npmOperationalInternal": { |
| 152 |
"host": "s3://npm-registry-packages", |
| 153 |
"tmp": "tmp/escalade_1.0.0_1592594320131_0.3712813635301244" |
| 154 |
}, |
| 155 |
"_hasShrinkwrap": false |
| 156 |
}, |
| 157 |
"2.0.0": { |
| 158 |
"name": "escalade", |
| 159 |
"version": "2.0.0", |
| 160 |
"repository": { |
| 161 |
"type": "git", |
| 162 |
"url": "git+https://github.com/lukeed/escalade.git" |
| 163 |
}, |
| 164 |
"description": "A tiny (196B to 224B) and fast utility to ascend parent directories", |
| 165 |
"module": "dist/index.mjs", |
| 166 |
"main": "dist/index.js", |
| 167 |
"types": "index.d.ts", |
| 168 |
"license": "MIT", |
| 169 |
"author": { |
| 170 |
"name": "Luke Edwards", |
| 171 |
"email": "[email protected]", |
| 172 |
"url": "https://lukeed.com" |
| 173 |
}, |
| 174 |
"exports": { |
| 175 |
"./": { |
| 176 |
"import": "./dist/index.mjs", |
| 177 |
"require": "./dist/index.js" |
| 178 |
}, |
| 179 |
"./sync": { |
| 180 |
"import": "./sync/index.mjs", |
| 181 |
"require": "./sync/index.js" |
| 182 |
} |
| 183 |
}, |
| 184 |
"modes": { |
| 185 |
"sync": "src/sync.js", |
| 186 |
"default": "src/async.js" |
| 187 |
}, |
| 188 |
"engines": { |
| 189 |
"node": ">=6" |
| 190 |
}, |
| 191 |
"scripts": { |
| 192 |
"build": "bundt", |
| 193 |
"pretest": "npm run build", |
| 194 |
"test": "uvu -r esm test -i fixtures" |
| 195 |
}, |
| 196 |
"keywords": [ |
| 197 |
"find", |
| 198 |
"parent", |
| 199 |
"parents", |
| 200 |
"directory", |
| 201 |
"search", |
| 202 |
"walk" |
| 203 |
], |
| 204 |
"devDependencies": { |
| 205 |
"bundt": "1.0.1", |
| 206 |
"esm": "3.2.25", |
| 207 |
"uvu": "0.0.11" |
| 208 |
}, |
| 209 |
"gitHead": "fafa75c0978b608d50c4dec271be4fefeb1be411", |
| 210 |
"bugs": { |
| 211 |
"url": "https://github.com/lukeed/escalade/issues" |
| 212 |
}, |
| 213 |
"homepage": "https://github.com/lukeed/escalade#readme", |
| 214 |
"_id": "[email protected]", |
| 215 |
"_npmVersion": "6.4.1", |
| 216 |
"_nodeVersion": "10.13.0", |
| 217 |
"_npmUser": { |
| 218 |
"name": "lukeed", |
| 219 |
"email": "[email protected]" |
| 220 |
}, |
| 221 |
"dist": { |
| 222 |
"integrity": "sha512-YOlYi0jO9/vqLYFrfyuGP/Hj4UrBPAoj75i0OKrJnbXG2QfIDPCJkJUZQAWE8t6EYiWgN0ZEyBcn/PMbqi8L9A==", |
| 223 |
"shasum": "0a526670b38a29dd68cf82a019ac0e19599a4bd8", |
| 224 |
"tarball": "https://registry.npmjs.org/escalade/-/escalade-2.0.0.tgz", |
| 225 |
"fileCount": 8, |
| 226 |
"unpackedSize": 11147, |
| 227 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7WgwCRA9TVsSAnZWagAAr48P/0l6kjO4vaSjUyrwTkR3\nZnBsxPYL41HIlzE1IfLfaUCM+5apg7zHOSEjlTsRzXG0at6OdPHyX/lDlqcj\nKewD+tBMeQT+K7l/gApVX60rvxnsGuCagE8z95WQAwyBwZMvGA/k8oQ0XDtX\nxavVwAoV6qyFp0t2j4eWh84JJKLb31yuAtxN2i1Dex6rhKlcl/wQf096FIjI\nISSKutV3aC91poAiw+mfGhAJYkVWKOEaV817nSlMYHhb7uMFg5NuR8P8WJvx\n+On8vJBEa0Qf+IP15a3EyuBNNh6DJ/nX0YI/7PxaaRPx/0icK89hlH5jdSr3\nJa7PPxQ12E73kgHHJDKV009c/Iscg+6HXNIe7REE00gMOeZKz9xl8VMhl1C4\nkQory8VsT0IeuscXWtIbSZ8ZqUFiIca3wacr1vVSS7MP4ipSNNShS48WjGhb\nSf0ev4Dh6y9d5/N0WEAAWTQ9KhK+A+m3Legd5PeeFP2wlUU31dH5R+50fKLW\nhin+n8L79K5/ZIiUIqJ0MMcT35N5SQV/Tn95SRe47DW+a4n3Vfgi5PmUUWCa\nDDxA8qYZulRIA0oedl3ONa4Ewkb6/1ftNFehtHD2Vddf0e2zkQ4hKakWDDBN\ndpo7LZZTm3YXafSW6LAp2JUzQqr/501MSAriDjI7SqrR9aPCtwPB9IwSlHm7\n9quK\r\n=dkFt\r\n-----END PGP SIGNATURE-----\r\n" |
| 228 |
}, |
| 229 |
"maintainers": [ |
| 230 |
{ |
| 231 |
"name": "lukeed", |
| 232 |
"email": "[email protected]" |
| 233 |
} |
| 234 |
], |
| 235 |
"directories": {}, |
| 236 |
"_npmOperationalInternal": { |
| 237 |
"host": "s3://npm-registry-packages", |
| 238 |
"tmp": "tmp/escalade_2.0.0_1592617007996_0.4323706808823915" |
| 239 |
}, |
| 240 |
"_hasShrinkwrap": false |
| 241 |
}, |
| 242 |
"3.0.0": { |
| 243 |
"name": "escalade", |
| 244 |
"version": "3.0.0", |
| 245 |
"repository": { |
| 246 |
"type": "git", |
| 247 |
"url": "git+https://github.com/lukeed/escalade.git" |
| 248 |
}, |
| 249 |
"description": "A tiny (183B to 210B) and fast utility to ascend parent directories", |
| 250 |
"module": "dist/index.mjs", |
| 251 |
"main": "dist/index.js", |
| 252 |
"types": "index.d.ts", |
| 253 |
"license": "MIT", |
| 254 |
"author": { |
| 255 |
"name": "Luke Edwards", |
| 256 |
"email": "[email protected]", |
| 257 |
"url": "https://lukeed.com" |
| 258 |
}, |
| 259 |
"exports": { |
| 260 |
"./": { |
| 261 |
"import": "./dist/index.mjs", |
| 262 |
"require": "./dist/index.js" |
| 263 |
}, |
| 264 |
"./sync": { |
| 265 |
"import": "./sync/index.mjs", |
| 266 |
"require": "./sync/index.js" |
| 267 |
} |
| 268 |
}, |
| 269 |
"modes": { |
| 270 |
"sync": "src/sync.js", |
| 271 |
"default": "src/async.js" |
| 272 |
}, |
| 273 |
"engines": { |
| 274 |
"node": ">=6" |
| 275 |
}, |
| 276 |
"scripts": { |
| 277 |
"build": "bundt", |
| 278 |
"pretest": "npm run build", |
| 279 |
"test": "uvu -r esm test -i fixtures" |
| 280 |
}, |
| 281 |
"keywords": [ |
| 282 |
"find", |
| 283 |
"parent", |
| 284 |
"parents", |
| 285 |
"directory", |
| 286 |
"search", |
| 287 |
"walk" |
| 288 |
], |
| 289 |
"devDependencies": { |
| 290 |
"bundt": "1.0.1", |
| 291 |
"esm": "3.2.25", |
| 292 |
"uvu": "0.0.11" |
| 293 |
}, |
| 294 |
"gitHead": "aac99f4eb8fb8ce98b5143029dc328c83cdfc4d8", |
| 295 |
"bugs": { |
| 296 |
"url": "https://github.com/lukeed/escalade/issues" |
| 297 |
}, |
| 298 |
"homepage": "https://github.com/lukeed/escalade#readme", |
| 299 |
"_id": "[email protected]", |
| 300 |
"_nodeVersion": "12.18.0", |
| 301 |
"_npmVersion": "6.14.4", |
| 302 |
"dist": { |
| 303 |
"integrity": "sha512-mA6h4UpYVBSxD7uq6y9RDtiYd9EMyuzITP1WgPKH2Gd0cDtnGP4LUrIoteH+BWRJfCXl94J/0dNfjUa45Oh+hQ==", |
| 304 |
"shasum": "79b81f3c4bebb9c1727f0adba4b0f9d0ff050ca9", |
| 305 |
"tarball": "https://registry.npmjs.org/escalade/-/escalade-3.0.0.tgz", |
| 306 |
"fileCount": 8, |
| 307 |
"unpackedSize": 10880, |
| 308 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7Y99CRA9TVsSAnZWagAAeNUP/AuOX7qHAq8jv9AkDypm\n4XOxCa7HmxJmVf6ScJCOJ09duw3rvRhEkTTlE+mo3cQvr48muNtR4swQUkim\nwuY5VYpOkGEe5fufCbjPVfk8ukTrc+a2Rt630hbiEf9tmS2gZB7gV7BugewO\nBA7V9FJGKMlrdlMAl3hocMiYO3AmF0HdwC3OII0elff4f5+CVc1GbsH/LDV8\nlJru6hdmmA8kxEhVsPANnfKxjuNDrFKUu0Hyu565OOgbuIzCo1oSR/J5Yxqc\nM26SLUj8WxMxSAmb8UPDszYrZL8Gim5idTjaGbYwAipC0lRmqGoC47as3BK5\noL83uV3/A/dKhb89+ufIwFoDoJdHP4eCqmTmABwcaQOrQbP2z9wBeJD7ouiN\n+aiTxCdzst1D40siDZUC+W9XS3UGbkKVGP2MIJf2tkefcXtO3LvgwIw1ND6E\nwRiISii3Nzhzmj5gnelZ3VRtSu/YvuS2TH57dvWkrwML+JT5ZVsgY8iH4rhT\njZYiq3cvd6hlBn8AG6fhoFQf1EgpYjeh/0OU2rZbUXKQAc9H1w1K+jICwW7h\n3CYdfbZERMzwff04ZHTdhbD1dpWGJ5PRjV2i8uUQGXZmb9wrdSo5WP31A27e\nkf+VCVIjb4/ws3JVR57AUnhSZ3Bh7P07f8Z6W1CgzKP0j+tI34Vgv02gtdQB\nvu3B\r\n=7Z23\r\n-----END PGP SIGNATURE-----\r\n" |
| 309 |
}, |
| 310 |
"maintainers": [ |
| 311 |
{ |
| 312 |
"name": "lukeed", |
| 313 |
"email": "[email protected]" |
| 314 |
} |
| 315 |
], |
| 316 |
"_npmUser": { |
| 317 |
"name": "lukeed", |
| 318 |
"email": "[email protected]" |
| 319 |
}, |
| 320 |
"directories": {}, |
| 321 |
"_npmOperationalInternal": { |
| 322 |
"host": "s3://npm-registry-packages", |
| 323 |
"tmp": "tmp/escalade_3.0.0_1592627069201_0.6863596103425054" |
| 324 |
}, |
| 325 |
"_hasShrinkwrap": false |
| 326 |
}, |
| 327 |
"3.0.1": { |
| 328 |
"name": "escalade", |
| 329 |
"version": "3.0.1", |
| 330 |
"repository": { |
| 331 |
"type": "git", |
| 332 |
"url": "git+https://github.com/lukeed/escalade.git" |
| 333 |
}, |
| 334 |
"description": "A tiny (183B to 210B) and fast utility to ascend parent directories", |
| 335 |
"module": "dist/index.mjs", |
| 336 |
"main": "dist/index.js", |
| 337 |
"types": "index.d.ts", |
| 338 |
"license": "MIT", |
| 339 |
"author": { |
| 340 |
"name": "Luke Edwards", |
| 341 |
"email": "[email protected]", |
| 342 |
"url": "https://lukeed.com" |
| 343 |
}, |
| 344 |
"exports": { |
| 345 |
".": { |
| 346 |
"import": "./dist/index.mjs", |
| 347 |
"require": "./dist/index.js" |
| 348 |
}, |
| 349 |
"./sync": { |
| 350 |
"import": "./sync/index.mjs", |
| 351 |
"require": "./sync/index.js" |
| 352 |
} |
| 353 |
}, |
| 354 |
"modes": { |
| 355 |
"sync": "src/sync.js", |
| 356 |
"default": "src/async.js" |
| 357 |
}, |
| 358 |
"engines": { |
| 359 |
"node": ">=6" |
| 360 |
}, |
| 361 |
"scripts": { |
| 362 |
"build": "bundt", |
| 363 |
"pretest": "npm run build", |
| 364 |
"test": "uvu -r esm test -i fixtures" |
| 365 |
}, |
| 366 |
"keywords": [ |
| 367 |
"find", |
| 368 |
"parent", |
| 369 |
"parents", |
| 370 |
"directory", |
| 371 |
"search", |
| 372 |
"walk" |
| 373 |
], |
| 374 |
"devDependencies": { |
| 375 |
"bundt": "1.0.1", |
| 376 |
"esm": "3.2.25", |
| 377 |
"uvu": "0.0.11" |
| 378 |
}, |
| 379 |
"gitHead": "9a40c76dbb54c4df6eb3468473b3cf6cf3f903de", |
| 380 |
"bugs": { |
| 381 |
"url": "https://github.com/lukeed/escalade/issues" |
| 382 |
}, |
| 383 |
"homepage": "https://github.com/lukeed/escalade#readme", |
| 384 |
"_id": "[email protected]", |
| 385 |
"_nodeVersion": "12.18.1", |
| 386 |
"_npmVersion": "6.14.5", |
| 387 |
"dist": { |
| 388 |
"integrity": "sha512-DR6NO3h9niOT+MZs7bjxlj2a1k+POu5RN8CLTPX2+i78bRi9eLe7+0zXgUHMnGXWybYcL61E9hGhPKqedy8tQA==", |
| 389 |
"shasum": "52568a77443f6927cd0ab9c73129137533c965ed", |
| 390 |
"tarball": "https://registry.npmjs.org/escalade/-/escalade-3.0.1.tgz", |
| 391 |
"fileCount": 8, |
| 392 |
"unpackedSize": 10879, |
| 393 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7wDBCRA9TVsSAnZWagAAr9wP/344IqanV5bptUPqYoD4\nuR9qfQZe2bYRn4RYjhuvhBI6Y9y7SfgKaVZAxnz/QIQU/Pqv12caL3qHmzl5\ntuQewpQ1hRUYQi2D932TRdFSnGQ5Sa/5grjwxMCGhUd1+96iVb75kIlrL+uW\nLfRWWAcUIwrnSDljEDXKBJzk6J7/POVXOVsQ1km3GawgIRvZyguWaFpxyPoD\nGsbSP99ef9VJtRskT9snvqHS8ad4nbkKTqtwcCfk/QkjUI0TDIdNG3TdwoEm\nxGT0ej8C96R9t1b668QbBk41noSgsEOFFGOdssWTdKsvE2aRkqsHNqC9Iez/\nuiXt/FbkKZqlWyOmyZCcKnQZCXz71/Gac3lmqhjntHhl10shLcTn7I9c4AtV\nfcVDmXVtcfN3H5/ELE48WFuW9AUMgH1i25ZbjmXr9NZbgM8zfN5GN81hZ/P4\nebNcogEp+Dq3atDIyop0EPwD9mzJt4C/0CHfXDRieb6a0JQwbSAWBpA+XQdm\n6Tbs+GoHO87qv029d34eRglFh7ZtAM5jFri6OcC0URjz+Scc8gYRjLJ5Xj65\nnCMXfx6Lu/UEESl0zpYQ43VC4UZAwOOmCMPfDhNDdo1lg+TypDPE6iRZ/p+Y\nDWRCCzrtdmU3NStgYK/ts8PdIycLtagERRwDqFgu7iXNKUaVrmUT/MbSs3Ra\n9N8+\r\n=YtWA\r\n-----END PGP SIGNATURE-----\r\n" |
| 394 |
}, |
| 395 |
"maintainers": [ |
| 396 |
{ |
| 397 |
"name": "lukeed", |
| 398 |
"email": "[email protected]" |
| 399 |
} |
| 400 |
], |
| 401 |
"_npmUser": { |
| 402 |
"name": "lukeed", |
| 403 |
"email": "[email protected]" |
| 404 |
}, |
| 405 |
"directories": {}, |
| 406 |
"_npmOperationalInternal": { |
| 407 |
"host": "s3://npm-registry-packages", |
| 408 |
"tmp": "tmp/escalade_3.0.1_1592721601176_0.3074567859393793" |
| 409 |
}, |
| 410 |
"_hasShrinkwrap": false |
| 411 |
}, |
| 412 |
"3.0.2": { |
| 413 |
"name": "escalade", |
| 414 |
"version": "3.0.2", |
| 415 |
"repository": { |
| 416 |
"type": "git", |
| 417 |
"url": "git+https://github.com/lukeed/escalade.git" |
| 418 |
}, |
| 419 |
"description": "A tiny (183B to 210B) and fast utility to ascend parent directories", |
| 420 |
"module": "dist/index.mjs", |
| 421 |
"main": "dist/index.js", |
| 422 |
"types": "index.d.ts", |
| 423 |
"license": "MIT", |
| 424 |
"author": { |
| 425 |
"name": "Luke Edwards", |
| 426 |
"email": "[email protected]", |
| 427 |
"url": "https://lukeed.com" |
| 428 |
}, |
| 429 |
"exports": { |
| 430 |
".": { |
| 431 |
"import": "./dist/index.mjs", |
| 432 |
"require": "./dist/index.js" |
| 433 |
}, |
| 434 |
"./sync": { |
| 435 |
"import": "./sync/index.mjs", |
| 436 |
"require": "./sync/index.js" |
| 437 |
} |
| 438 |
}, |
| 439 |
"modes": { |
| 440 |
"sync": "src/sync.js", |
| 441 |
"default": "src/async.js" |
| 442 |
}, |
| 443 |
"engines": { |
| 444 |
"node": ">=6" |
| 445 |
}, |
| 446 |
"scripts": { |
| 447 |
"build": "bundt", |
| 448 |
"pretest": "npm run build", |
| 449 |
"test": "uvu -r esm test -i fixtures" |
| 450 |
}, |
| 451 |
"keywords": [ |
| 452 |
"find", |
| 453 |
"parent", |
| 454 |
"parents", |
| 455 |
"directory", |
| 456 |
"search", |
| 457 |
"walk" |
| 458 |
], |
| 459 |
"devDependencies": { |
| 460 |
"bundt": "1.0.1", |
| 461 |
"esm": "3.2.25", |
| 462 |
"uvu": "0.0.11" |
| 463 |
}, |
| 464 |
"gitHead": "00e5a242da88a09034d7784df686d14f246cd28e", |
| 465 |
"bugs": { |
| 466 |
"url": "https://github.com/lukeed/escalade/issues" |
| 467 |
}, |
| 468 |
"homepage": "https://github.com/lukeed/escalade#readme", |
| 469 |
"_id": "[email protected]", |
| 470 |
"_nodeVersion": "12.18.2", |
| 471 |
"_npmVersion": "6.14.5", |
| 472 |
"dist": { |
| 473 |
"integrity": "sha512-gPYAU37hYCUhW5euPeR+Y74F7BL+IBsV93j5cvGriSaD1aG6MGsqsV1yamRdrWrb2j3aiZvb0X+UBOWpx3JWtQ==", |
| 474 |
"shasum": "6a580d70edb87880f22b4c91d0d56078df6962c4", |
| 475 |
"tarball": "https://registry.npmjs.org/escalade/-/escalade-3.0.2.tgz", |
| 476 |
"fileCount": 8, |
| 477 |
"unpackedSize": 10879, |
| 478 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDd3dCRA9TVsSAnZWagAAfrMP/185q8AwgoLH9faxGX0m\nfRxZFYqW+piR1BKHAqtQoldi6Wp1c9A9f4yTfyVUz9QfQ6ht5WQdWjW80vaT\nSJZq3zlgjy539RzDbvzL88z6x+Df8yklWwAIPLBuQEn1WWJZUAb5dUuC5F5J\ngvkSgsxOtXTx0mMreCM7nVqlYAxNi28owMwsSLsJouG3/fHnS41yC+MpDyao\nyWrFY4J0vs+eIpeeRd4DXwwjypxQyYZGidAv5IkGIy0ZepABZqapy2NpVaez\n1M70QOBL0CzzI2nDMv+17jhZX4xZKMXayGj1hmPypYni0IERLmr7NgAkednW\nVuFlxPk+fMgKPcwnz/5ajCXW0gouFpET6Rhn8ZH/2WbXqZxcFx463+B/NTzo\neg6TM9gVZED/VY1I/A0SJL5lMpKCoZg1qfoJ9WPD1yyYJ9FLnrJHsmqf1tKp\nvZBITjtVchtaWC6AwlrLQmxmdfh1bCo8wdKjyXgKtOMUj80MQesLtJ4Lxc6B\nf8ls2IcNYe8vTH1q59rQpYPAEtA5XTC+W418lpzSwQSALxE3W2gNVzvFIwV/\nQopzru4Pb9PdoQABckws9DWTbXQQYblFuNqnooIGoaTybVCodWFNJWNwu/Ik\njzLiS+L6svcQvwUKClaU0HICclYC2SucMhlJmhL0Hj0pre1pIdXgX8Qo1y5Y\nHgqg\r\n=LRdZ\r\n-----END PGP SIGNATURE-----\r\n" |
| 479 |
}, |
| 480 |
"maintainers": [ |
| 481 |
{ |
| 482 |
"name": "lukeed", |
| 483 |
"email": "[email protected]" |
| 484 |
} |
| 485 |
], |
| 486 |
"_npmUser": { |
| 487 |
"name": "lukeed", |
| 488 |
"email": "[email protected]" |
| 489 |
}, |
| 490 |
"directories": {}, |
| 491 |
"_npmOperationalInternal": { |
| 492 |
"host": "s3://npm-registry-packages", |
| 493 |
"tmp": "tmp/escalade_3.0.2_1594744284416_0.41136776208533954" |
| 494 |
}, |
| 495 |
"_hasShrinkwrap": false |
| 496 |
}, |
| 497 |
"3.1.0": { |
| 498 |
"name": "escalade", |
| 499 |
"version": "3.1.0", |
| 500 |
"repository": { |
| 501 |
"type": "git", |
| 502 |
"url": "git+https://github.com/lukeed/escalade.git" |
| 503 |
}, |
| 504 |
"description": "A tiny (183B to 210B) and fast utility to ascend parent directories", |
| 505 |
"module": "dist/index.mjs", |
| 506 |
"main": "dist/index.js", |
| 507 |
"types": "index.d.ts", |
| 508 |
"license": "MIT", |
| 509 |
"author": { |
| 510 |
"name": "Luke Edwards", |
| 511 |
"email": "[email protected]", |
| 512 |
"url": "https://lukeed.com" |
| 513 |
}, |
| 514 |
"exports": { |
| 515 |
".": { |
| 516 |
"import": "./dist/index.mjs", |
| 517 |
"require": "./dist/index.js" |
| 518 |
}, |
| 519 |
"./sync": { |
| 520 |
"import": "./sync/index.mjs", |
| 521 |
"require": "./sync/index.js" |
| 522 |
} |
| 523 |
}, |
| 524 |
"modes": { |
| 525 |
"sync": "src/sync.js", |
| 526 |
"default": "src/async.js" |
| 527 |
}, |
| 528 |
"engines": { |
| 529 |
"node": ">=6" |
| 530 |
}, |
| 531 |
"scripts": { |
| 532 |
"build": "bundt", |
| 533 |
"pretest": "npm run build", |
| 534 |
"test": "uvu -r esm test -i fixtures" |
| 535 |
}, |
| 536 |
"keywords": [ |
| 537 |
"find", |
| 538 |
"parent", |
| 539 |
"parents", |
| 540 |
"directory", |
| 541 |
"search", |
| 542 |
"walk" |
| 543 |
], |
| 544 |
"devDependencies": { |
| 545 |
"bundt": "1.1.1", |
| 546 |
"esm": "3.2.25", |
| 547 |
"uvu": "0.3.3" |
| 548 |
}, |
| 549 |
"gitHead": "717487994128bd22bc8bc4318496fadbf5cab746", |
| 550 |
"bugs": { |
| 551 |
"url": "https://github.com/lukeed/escalade/issues" |
| 552 |
}, |
| 553 |
"homepage": "https://github.com/lukeed/escalade#readme", |
| 554 |
"_id": "[email protected]", |
| 555 |
"_nodeVersion": "14.10.0", |
| 556 |
"_npmVersion": "6.14.8", |
| 557 |
"dist": { |
| 558 |
"integrity": "sha512-mAk+hPSO8fLDkhV7V0dXazH5pDc6MrjBTPyD3VeKzxnVFjH1MIxbCdqGZB9O8+EwWakZs3ZCbDS4IpRt79V1ig==", |
| 559 |
"shasum": "e8e2d7c7a8b76f6ee64c2181d6b8151441602d4e", |
| 560 |
"tarball": "https://registry.npmjs.org/escalade/-/escalade-3.1.0.tgz", |
| 561 |
"fileCount": 9, |
| 562 |
"unpackedSize": 11344, |
| 563 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfX6n5CRA9TVsSAnZWagAAvYUP/0BRjGl9OZWIBX/RfOoQ\nVKt6pGtcIZO/ZztTezQxXwX17ZHyodVdbDRjzYunFDHTtHZPCTLPL/77RgOV\nBM+vvrmVIP9E99AsGzMcm9c5pYcWepU+R+V0mPlCI4S2/20oXNxeg17MUw1A\nN645mv3O0+oWCg9ovjO3NZM8hkh4dqG1QX0BbWWrOfzDLsle9vgt68hgQFkY\nP4fe9jNnRYAmVfKmdVNRgum3BVIol1ygIh84YOMuSfNboSDblwzQz8zGBE2b\nhH3TluBeRZ1hlj0RxukjOhN+xpD5fl/+2Zjit/YDxcsxyx+wE6RnXtiBrwCT\nEDNFcHAv1Vcj2GyssS3CIm/pN71ChyD2Ujor7Nmf3zsLUq10hBGZp2NpJ36q\nQaBbBSseJljBt9GjPe3iYFpzH0WxBOmGzqaMLlCAfqOVrHPHHamhXLndTuFv\neiRv1MEyIHLo/Ivnt1l5b7QjmQ3i+/Un8H2h7F7GgNXr1zu5SnJCsbbxg/5j\nNnvZOIAiSDf4qXuRZT0PK1ASjkCf6EHRkK8IvM6h4rCBuaQ8XlFrNOiAg39c\nyv0HOiZ9dnOxeMc4yD3A9ajc1hJPOWy/kc2V+19bElgCsj+rTpulZlHUZHQ3\niUd9p+VSjEa353voOBbFPb6naTBwbRztEXaNKxTQ+FN/XDBn1UuESE7VViXO\nrCAe\r\n=KRx1\r\n-----END PGP SIGNATURE-----\r\n" |
| 564 |
}, |
| 565 |
"maintainers": [ |
| 566 |
{ |
| 567 |
"name": "lukeed", |
| 568 |
"email": "[email protected]" |
| 569 |
} |
| 570 |
], |
| 571 |
"_npmUser": { |
| 572 |
"name": "lukeed", |
| 573 |
"email": "[email protected]" |
| 574 |
}, |
| 575 |
"directories": {}, |
| 576 |
"_npmOperationalInternal": { |
| 577 |
"host": "s3://npm-registry-packages", |
| 578 |
"tmp": "tmp/escalade_3.1.0_1600104953222_0.47528761525994767" |
| 579 |
}, |
| 580 |
"_hasShrinkwrap": false |
| 581 |
}, |
| 582 |
"3.1.1": { |
| 583 |
"name": "escalade", |
| 584 |
"version": "3.1.1", |
| 585 |
"repository": { |
| 586 |
"type": "git", |
| 587 |
"url": "git+https://github.com/lukeed/escalade.git" |
| 588 |
}, |
| 589 |
"description": "A tiny (183B to 210B) and fast utility to ascend parent directories", |
| 590 |
"module": "dist/index.mjs", |
| 591 |
"main": "dist/index.js", |
| 592 |
"types": "index.d.ts", |
| 593 |
"license": "MIT", |
| 594 |
"author": { |
| 595 |
"name": "Luke Edwards", |
| 596 |
"email": "[email protected]", |
| 597 |
"url": "https://lukeed.com" |
| 598 |
}, |
| 599 |
"exports": { |
| 600 |
".": [ |
| 601 |
{ |
| 602 |
"import": "./dist/index.mjs", |
| 603 |
"require": "./dist/index.js" |
| 604 |
}, |
| 605 |
"./dist/index.js" |
| 606 |
], |
| 607 |
"./sync": [ |
| 608 |
{ |
| 609 |
"import": "./sync/index.mjs", |
| 610 |
"require": "./sync/index.js" |
| 611 |
}, |
| 612 |
"./sync/index.js" |
| 613 |
] |
| 614 |
}, |
| 615 |
"modes": { |
| 616 |
"sync": "src/sync.js", |
| 617 |
"default": "src/async.js" |
| 618 |
}, |
| 619 |
"engines": { |
| 620 |
"node": ">=6" |
| 621 |
}, |
| 622 |
"scripts": { |
| 623 |
"build": "bundt", |
| 624 |
"pretest": "npm run build", |
| 625 |
"test": "uvu -r esm test -i fixtures" |
| 626 |
}, |
| 627 |
"keywords": [ |
| 628 |
"find", |
| 629 |
"parent", |
| 630 |
"parents", |
| 631 |
"directory", |
| 632 |
"search", |
| 633 |
"walk" |
| 634 |
], |
| 635 |
"devDependencies": { |
| 636 |
"bundt": "1.1.1", |
| 637 |
"esm": "3.2.25", |
| 638 |
"uvu": "0.3.3" |
| 639 |
}, |
| 640 |
"gitHead": "2477005062cdbd8407afc90d3f48f4930354252b", |
| 641 |
"bugs": { |
| 642 |
"url": "https://github.com/lukeed/escalade/issues" |
| 643 |
}, |
| 644 |
"homepage": "https://github.com/lukeed/escalade#readme", |
| 645 |
"_id": "[email protected]", |
| 646 |
"_nodeVersion": "14.10.1", |
| 647 |
"_npmVersion": "6.14.8", |
| 648 |
"dist": { |
| 649 |
"integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", |
| 650 |
"shasum": "d8cfdc7000965c5a0174b4a82eaa5c0552742e40", |
| 651 |
"tarball": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", |
| 652 |
"fileCount": 9, |
| 653 |
"unpackedSize": 11434, |
| 654 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhUNACRA9TVsSAnZWagAAxgUP/A8GPqV1Tm+m3shzqfBA\nHUKtBmVn7xCHFAm8sw1aHCPQHoV3cWZUR+zVJyXnVXg5w8Mw93733m7H3DSO\njol+uLlCeVTtgFVqgw6f5puC8+6vPaTwQav612Tk6uBc4RUL00pQf/Td9k0P\nyVpSudXUT2RnyRWOkJ7T9/kNS3tHsyl+AVhH2kO+QUqUe4N5go7D8juWO4H1\n/Jia3Mv7Eh8Ex9onDWavMVqudkWvioWkVQrrCqa+WHzEcp9thnd7iFhkoqM/\nVYDlEk41E+EDhOOvtRwhvQtklQJujBOPpIDsYNEmyc0w+HpNDkYAklWlP/Y6\nNB3jSh44XUvCF4Iq0lNMeNOi+dUFLyMQd8bxXbDMzVispLmmJTr043K9ZB/c\nChy0OV28fWpWA/iz5/5D9Al8tv3VUHSI0apRHkUS7hH18zosLfIOe1lG3XHm\n99pIdlPABgrRek4zSl9SVL3/kr5u8CCMYiqH10OBMm/3agFC4Ia0VU1k7Zm1\n6uvAbbCUhdLpUFbJyKjQJIloSWcyrWCDzQ7yPYB/eQMnBqWF51/nR0RuSBpQ\nRbRkhZd4g9Ndyot41ImqRz9FcOsOzEoJZumsav97JpDV0NXXP3ZtJaLrwHJ8\n2bcGDm6KaxpA9BpLzeYaKyZ1XeYSjwpsPa1RSJp2piZTqSmh2ZzTxvmEQkmL\noD/u\r\n=S3nB\r\n-----END PGP SIGNATURE-----\r\n" |
| 655 |
}, |
| 656 |
"maintainers": [ |
| 657 |
{ |
| 658 |
"name": "lukeed", |
| 659 |
"email": "[email protected]" |
| 660 |
} |
| 661 |
], |
| 662 |
"_npmUser": { |
| 663 |
"name": "lukeed", |
| 664 |
"email": "[email protected]" |
| 665 |
}, |
| 666 |
"directories": {}, |
| 667 |
"_npmOperationalInternal": { |
| 668 |
"host": "s3://npm-registry-packages", |
| 669 |
"tmp": "tmp/escalade_3.1.1_1602569023852_0.8272593854757944" |
| 670 |
}, |
| 671 |
"_hasShrinkwrap": false |
| 672 |
} |
| 673 |
}, |
| 674 |
"time": { |
| 675 |
"created": "2020-06-19T05:33:37.862Z", |
| 676 |
"0.0.0": "2020-06-19T05:33:38.006Z", |
| 677 |
"modified": "2020-10-13T06:03:46.295Z", |
| 678 |
"1.0.0": "2020-06-19T19:18:40.240Z", |
| 679 |
"2.0.0": "2020-06-20T01:36:48.148Z", |
| 680 |
"3.0.0": "2020-06-20T04:24:29.337Z", |
| 681 |
"3.0.1": "2020-06-21T06:40:01.316Z", |
| 682 |
"3.0.2": "2020-07-14T16:31:24.535Z", |
| 683 |
"3.1.0": "2020-09-14T17:35:53.351Z", |
| 684 |
"3.1.1": "2020-10-13T06:03:44.007Z" |
| 685 |
}, |
| 686 |
"maintainers": [ |
| 687 |
{ |
| 688 |
"name": "lukeed", |
| 689 |
"email": "[email protected]" |
| 690 |
} |
| 691 |
], |
| 692 |
"description": "A tiny (183B to 210B) and fast utility to ascend parent directories", |
| 693 |
"homepage": "https://github.com/lukeed/escalade#readme", |
| 694 |
"keywords": [ |
| 695 |
"find", |
| 696 |
"parent", |
| 697 |
"parents", |
| 698 |
"directory", |
| 699 |
"search", |
| 700 |
"walk" |
| 701 |
], |
| 702 |
"repository": { |
| 703 |
"type": "git", |
| 704 |
"url": "git+https://github.com/lukeed/escalade.git" |
| 705 |
}, |
| 706 |
"author": { |
| 707 |
"name": "Luke Edwards", |
| 708 |
"email": "[email protected]", |
| 709 |
"url": "https://lukeed.com" |
| 710 |
}, |
| 711 |
"bugs": { |
| 712 |
"url": "https://github.com/lukeed/escalade/issues" |
| 713 |
}, |
| 714 |
"license": "MIT", |
| 715 |
"readme": "# escalade [](https://github.com/lukeed/escalade/actions) [](https://codecov.io/gh/lukeed/escalade)\n\n> A tiny (183B to 210B) and [fast](#benchmarks) utility to ascend parent directories\n\nWith [escalade](https://en.wikipedia.org/wiki/Escalade), you can scale parent directories until you've found what you're looking for.<br>Given an input file or directory, `escalade` will continue executing your callback function until either:\n\n1) the callback returns a truthy value\n2) `escalade` has reached the system root directory (eg, `/`)\n\n> **Important:**<br>Please note that `escalade` only deals with direct ancestry – it will not dive into parents' sibling directories.\n\n---\n\n**Notice:** As of v3.1.0, `escalade` now includes [Deno support](http://deno.land/x/escalade)! Please see [Deno Usage](#deno) below.\n\n---\n\n## Install\n\n```\n$ npm install --save escalade\n```\n\n\n## Modes\n\nThere are two \"versions\" of `escalade` available:\n\n#### \"async\"\n> **Node.js:** >= 8.x<br>\n> **Size (gzip):** 210 bytes<br>\n> **Availability:** [CommonJS](https://unpkg.com/escalade/dist/index.js), [ES Module](https://unpkg.com/escalade/dist/index.mjs)\n\nThis is the primary/default mode. It makes use of `async`/`await` and [`util.promisify`](https://nodejs.org/api/util.html#util_util_promisify_original).\n\n#### \"sync\"\n> **Node.js:** >= 6.x<br>\n> **Size (gzip):** 183 bytes<br>\n> **Availability:** [CommonJS](https://unpkg.com/escalade/sync/index.js), [ES Module](https://unpkg.com/escalade/sync/index.mjs)\n\nThis is the opt-in mode, ideal for scenarios where `async` usage cannot be supported.\n\n\n## Usage\n\n***Example Structure***\n\n```\n/Users/lukeed\n └── oss\n ├── license\n └── escalade\n ├── package.json\n └── test\n └── fixtures\n ├── index.js\n └── foobar\n └── demo.js\n```\n\n***Example Usage***\n\n```js\n//~> demo.js\nimport { join } from 'path';\nimport escalade from 'escalade';\n\nconst input = join(__dirname, 'demo.js');\n// or: const input = __dirname;\n\nconst pkg = await escalade(input, (dir, names) => {\n console.log('~> dir:', dir);\n console.log('~> names:', names);\n console.log('---');\n\n if (names.includes('package.json')) {\n // will be resolved into absolute\n return 'package.json';\n }\n});\n\n//~> dir: /Users/lukeed/oss/escalade/test/fixtures/foobar\n//~> names: ['demo.js']\n//---\n//~> dir: /Users/lukeed/oss/escalade/test/fixtures\n//~> names: ['index.js', 'foobar']\n//---\n//~> dir: /Users/lukeed/oss/escalade/test\n//~> names: ['fixtures']\n//---\n//~> dir: /Users/lukeed/oss/escalade\n//~> names: ['package.json', 'test']\n//---\n\nconsole.log(pkg);\n//=> /Users/lukeed/oss/escalade/package.json\n\n// Now search for \"missing123.txt\"\n// (Assume it doesn't exist anywhere!)\nconst missing = await escalade(input, (dir, names) => {\n console.log('~> dir:', dir);\n return names.includes('missing123.txt') && 'missing123.txt';\n});\n\n//~> dir: /Users/lukeed/oss/escalade/test/fixtures/foobar\n//~> dir: /Users/lukeed/oss/escalade/test/fixtures\n//~> dir: /Users/lukeed/oss/escalade/test\n//~> dir: /Users/lukeed/oss/escalade\n//~> dir: /Users/lukeed/oss\n//~> dir: /Users/lukeed\n//~> dir: /Users\n//~> dir: /\n\nconsole.log(missing);\n//=> undefined\n```\n\n> **Note:** To run the above example with \"sync\" mode, import from `escalade/sync` and remove the `await` keyword.\n\n\n## API\n\n### escalade(input, callback)\nReturns: `string|void` or `Promise<string|void>`\n\nWhen your `callback` locates a file, `escalade` will resolve/return with an absolute path.<br>\nIf your `callback` was never satisfied, then `escalade` will resolve/return with nothing (undefined).\n\n> **Important:**<br>The `sync` and `async` versions share the same API.<br>The **only** difference is that `sync` is not Promise-based.\n\n#### input\nType: `string`\n\nThe path from which to start ascending.\n\nThis may be a file or a directory path.<br>However, when `input` is a file, `escalade` will begin with its parent directory.\n\n> **Important:** Unless given an absolute path, `input` will be resolved from `process.cwd()` location.\n\n#### callback\nType: `Function`\n\nThe callback to execute for each ancestry level. It always is given two arguments:\n\n1) `dir` - an absolute path of the current parent directory\n2) `names` - a list (`string[]`) of contents _relative to_ the `dir` parent\n\n> **Note:** The `names` list can contain names of files _and_ directories.\n\nWhen your callback returns a _falsey_ value, then `escalade` will continue with `dir`'s parent directory, re-invoking your callback with new argument values.\n\nWhen your callback returns a string, then `escalade` stops iteration immediately.<br>\nIf the string is an absolute path, then it's left as is. Otherwise, the string is resolved into an absolute path _from_ the `dir` that housed the satisfying condition.\n\n> **Important:** Your `callback` can be a `Promise/AsyncFunction` when using the \"async\" version of `escalade`.\n\n## Benchmarks\n\n> Running on Node.js v10.13.0\n\n```\n# Load Time\n find-up 3.891ms\n escalade 0.485ms\n escalade/sync 0.309ms\n\n# Levels: 6 (target = \"foo.txt\"):\n find-up x 24,856 ops/sec ±6.46% (55 runs sampled)\n escalade x 73,084 ops/sec ±4.23% (73 runs sampled)\n find-up.sync x 3,663 ops/sec ±1.12% (83 runs sampled)\n escalade/sync x 9,360 ops/sec ±0.62% (88 runs sampled)\n\n# Levels: 12 (target = \"package.json\"):\n find-up x 29,300 ops/sec ±10.68% (70 runs sampled)\n escalade x 73,685 ops/sec ± 5.66% (66 runs sampled)\n find-up.sync x 1,707 ops/sec ± 0.58% (91 runs sampled)\n escalade/sync x 4,667 ops/sec ± 0.68% (94 runs sampled)\n\n# Levels: 18 (target = \"missing123.txt\"):\n find-up x 21,818 ops/sec ±17.37% (14 runs sampled)\n escalade x 67,101 ops/sec ±21.60% (20 runs sampled)\n find-up.sync x 1,037 ops/sec ± 2.86% (88 runs sampled)\n escalade/sync x 1,248 ops/sec ± 0.50% (93 runs sampled)\n```\n\n## Deno\n\nAs of v3.1.0, `escalade` is available on the Deno registry.\n\nPlease note that the [API](#api) is identical and that there are still [two modes](#modes) from which to choose:\n\n```ts\n// Choose \"async\" mode\nimport escalade from 'https://deno.land/escalade/async.ts';\n\n// Choose \"sync\" mode\nimport escalade from 'https://deno.land/escalade/sync.ts';\n```\n\n> **Important:** The `allow-read` permission is required!\n\n\n## Related\n\n- [premove](https://github.com/lukeed/premove) - A tiny (247B) utility to remove items recursively\n- [totalist](https://github.com/lukeed/totalist) - A tiny (195B to 224B) utility to recursively list all (total) files in a directory\n- [mk-dirs](https://github.com/lukeed/mk-dirs) - A tiny (420B) utility to make a directory and its parents, recursively\n\n## License\n\nMIT © [Luke Edwards](https://lukeed.com)\n", |
| 716 |
"readmeFilename": "readme.md" |
| 717 |
} |