Installation
npm install --save @types/shell-quote
Summary
This package contains type definitions for shell-quote (https://github.com/substack/node-shell-quote).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/shell-quote.
export type ControlOperator = "||" | "&&" | ";;" | "|&" | "<(" | ">>" | ">&" | "&" | ";" | "(" | ")" | "|" | "<" | ">";
export type ParseEntry =
| string
| { op: ControlOperator }
| { op: "glob"; pattern: string }
| { comment: string };
export interface ParseOptions {
escape?: string | undefined;
}
export function quote(args: readonly string[]): string;
export function parse(
cmd: string,
env?: { readonly [key: string]: string | undefined },
opts?: ParseOptions,
): ParseEntry[];
export function parse<T extends object | string>(
cmd: string,
env: (key: string) => T | undefined,
opts?: ParseOptions,
): Array<ParseEntry | T>;
Additional Details
- Last updated: Mon, 20 Nov 2023 23:36:24 GMT
- Dependencies: none
Credits
These definitions were written by Jason Cheatham, Cameron Diver, and Opportunity Liu.