API reference
bellpull/node-which
Every export of bellpull/node-which, with its signature and doc comment: module.exports, which, plus 1 type.
import which from 'bellpull/node-which';
import { module.exports } from 'bellpull/node-which';Functions
default
The default export, declared as which.
node-which's which: the same search, answered as a promise.
function which(cmd: string, opt?: NodeWhichOptions): Promise<Found>;
namespace which {
var sync: typeof whichSync;
}| Parameter | Type |
|---|---|
cmd | string |
opt (optional) | NodeWhichOptions |
Returns Promise<Found>
module.exports
node-which's which: the same search, answered as a promise.
function which(cmd: string, opt?: NodeWhichOptions): Promise<Found>;
namespace which {
var sync: typeof whichSync;
}| Parameter | Type |
|---|---|
cmd | string |
opt (optional) | NodeWhichOptions |
Returns Promise<Found>
Interfaces
NodeWhichOptions
interface NodeWhichOptions {
/** Return every match rather than the first. */
all?: boolean;
/** Return `null` rather than throwing when nothing is found. */
nothrow?: boolean;
/** Search this instead of `PATH`. */
path?: string;
/** Use these extensions instead of `PATHEXT`, on Windows. */
pathExt?: string;
/** Split `path` and `pathExt` on this instead of the platform's delimiter. */
delimiter?: string;
}bellpull/which
Every export of bellpull/which, with its signature and doc comment: pathExtensions, extensionCandidates, searchPath, whichAllSync, whichSync, resolveExecutable and 5 more, plus 3 types.
bellpull/cross-spawn
Every export of bellpull/cross-spawn, with its signature and doc comment: _enoent, crossSpawn, module.exports, parse, spawn, sync and 2 more, plus 3 types.