Installation
npm install --save @types/libnpmexec
Summary
This package contains type definitions for libnpmexec (https://github.com/npm/libnpmexec#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/libnpmexec.
index.d.ts
/// <reference types="node" />
declare function libnpmexec(opts: {
readonly args: readonly string[];
readonly call?: string;
readonly cache?: string;
readonly npxCache?: string;
readonly color?: boolean;
readonly localBin?: string;
readonly locationMsg?: string;
readonly log?: {
disableProgress?(): void;
enableProgress?(): void;
warn(title: string, message: string): void;
};
readonly globalBin?: string;
readonly output?: (message: string) => void;
readonly packages?: readonly string[];
readonly path?: string;
readonly runPath?: string;
readonly scriptShell?: string;
readonly yes?: boolean;
readonly registry?: string;
}): Promise<{
readonly code: number;
readonly signal: string;
readonly stdout: Buffer | string;
readonly stderr: Buffer | string;
readonly path: string;
readonly event: string;
readonly script: string;
}>;
export = libnpmexec;
Additional Details
- Last updated: Mon, 20 Nov 2023 23:36:24 GMT
- Dependencies: @types/node
Credits
These definitions were written by jameswilddev.