UNPKG

630 BTypeScriptView Raw
1export interface Json2EnvOptions {
2 jsonPath: string;
3 prefix?: string;
4 /**
5 * @default true
6 */
7 saveEnvFile?: boolean;
8 /**
9 * @default true
10 */
11 bashEnv?: boolean;
12 /**
13 * @default true
14 */
15 fail?: boolean;
16 debug?: boolean;
17 silent?: boolean;
18}
19export declare function json2env(opt: Json2EnvOptions): void;
20/**
21 * Turns Object with keys/values into a *.sh script that exports all keys as values.
22 *
23 * @example
24 * { a: 'b', b: 'c'}
25 *
26 * will turn into:
27 *
28 * export a="b"
29 * export b="c"
30 */
31export declare function objectToShellExport(o: any, prefix?: string): string;