UNPKG

aspargvs

Version:
11 lines (10 loc) 502 B
import { JsonObject } from './json'; /** * Convert a JSON object into an equivalent array of arguments. * * @param json - JSON object to break down into arguments. * @param unkey - A function to transform keys * (for example change camel case of JSON keys to kebab case of CLI arguments). * @returns An array of argument strings (unescaped, may require escaping specific to a shell). */ export declare function unparseArgs(json: JsonObject, unkey?: (key: string) => string): string[];