@types/which

  • Version 3.0.4
  • Published
  • 6.97 kB
  • No dependencies
  • MIT license

Install

npm i @types/which
yarn add @types/which
pnpm add @types/which

Overview

TypeScript definitions for which

Index

Functions

function sync

sync: <TOptions extends Options>(
cmd: string,
options?: Exact<Options, TOptions>
) => ReturnType<Exact<Options, TOptions>>;
  • Finds all instances of a specified executable in the PATH environment variable

function which

which: typeof which;

    Interfaces

    interface Options

    interface Options {}
    • Options for which() API

    property all

    all?: boolean | undefined;
    • If true, return all matches, instead of just the first one. Note that this means the function returns an array of strings instead of a single string.

    property delimiter

    delimiter?: string | undefined;
    • Use instead of the platform's native path separator.

    property nothrow

    nothrow?: boolean | undefined;
    • If true, returns null when not found

    property path

    path?: string | undefined;
    • Use instead of the PATH environment variable.

    property pathExt

    pathExt?: string | undefined;
    • Use instead of the PATHEXT environment variable.

    Package Files (1)

    Dependencies (0)

    No dependencies.

    Dev Dependencies (0)

    No dev dependencies.

    Peer Dependencies (0)

    No peer dependencies.

    Badge

    To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

    You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/which.

    • Markdown
      [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/which)
    • HTML
      <a href="https://www.jsdocs.io/package/@types/which"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>