UNPKG

shellwords

Version:

Manipulate strings according to the word parsing rules of the UNIX Bourne shell.

22 lines 690 B
/** * Splits a string into an array of tokens in the same way the UNIX Bourne shell does. * * @param line A string to split. * @returns An array of the split tokens. */ export declare const split: (line?: string) => string[]; /** * Escapes a string so that it can be safely used in a Bourne shell command line. * * @param str A string to escape. * @returns The escaped string. */ export declare const escape: (str?: string) => string; /** * Builds a command line string from an argument list. * * @param array An array of string arguments. * @returns The command line string. */ export declare const join: (array: string[]) => string; //# sourceMappingURL=shellwords.d.ts.map