Update deps

This commit is contained in:
Anton Medvedev 2023-03-28 17:15:22 +02:00
commit 363bb1be96
126 changed files with 5743 additions and 2737 deletions

22
node_modules/which/README.md generated vendored
View file

@ -9,30 +9,24 @@ needed when the PATH changes.
## USAGE
```javascript
var which = require('which')
const which = require('which')
// async usage
which('node', function (er, resolvedPath) {
// er is returned if no "node" is found on the PATH
// if it is found, then the absolute path to the exec is returned
})
// rejects if not found
const resolved = await which('node')
// or promise
which('node').then(resolvedPath => { ... }).catch(er => { ... not found ... })
// if nothrow option is used, returns null if not found
const resolvedOrNull = await which('node', { nothrow: true })
// sync usage
// throws if not found
var resolved = which.sync('node')
const resolved = which.sync('node')
// if nothrow option is used, returns null if not found
resolved = which.sync('node', {nothrow: true})
const resolvedOrNull = which.sync('node', { nothrow: true })
// Pass options to override the PATH and PATHEXT environment vars.
which('node', { path: someOtherPath }, function (er, resolved) {
if (er)
throw er
console.log('found at %j', resolved)
})
await which('node', { path: someOtherPath, pathExt: somePathExt })
```
## CLI USAGE