UNPKG

magica

Version:

ImageMagick for browser and Node.js, easy setup, high level API and Command Line Interface, including WASM binary for an easy setup.

18 lines (17 loc) 1.01 kB
export declare function processCommand(command: string | string[]): string[]; /** * Generates a valid command line command from given `string[]` command. Works with a single command. */ export declare function arrayToCliOne(command: string[]): string; /** * Generates a valid command line string from given `string[]` that is compatible with {@link call}. Works with multiple * commands by separating them with new lines and support comand splitting in new lines using `\`. * See {@link ExecuteCommand} for more information. */ export declare function arrayToCli(command: string[] | string[][]): string; /** * Generates a command in the form of `string[][]` that is compatible with {@link call} from given command line string. * This works for strings containing multiple commands in different lines. and also respect `\` character for continue the same * command in a new line. See {@link ExecuteCommand} for more information. */ export declare function cliToArray(cliCommand: string): string[][];