UNPKG

compose-as-code

Version:

Provides a module to express docker compose files as code

19 lines (18 loc) 802 B
export interface OutputFile { fileName: string; outputDir: string; content: string; } export declare const createDirIfNotExisting: (dirname: string) => void; export declare const compileKeyValuePair: (key: string, value: string | number, indentationDepth: number, options?: { noQuotes?: boolean; }) => string; export declare const indent: (indentationDepth: number) => string; export declare const compileObject: (obj: object, baseIndentationDepth: number) => string; export declare const compileObjectListWithId: (list: { id: string; }[], baseIndentationDepth: number) => string; export declare const compileList: (list: string[], baseIndentationDepth: number, options?: { asSingleLineList?: boolean; }) => string; export declare const writeFile: (config: OutputFile) => void;