UNPKG

dotenv-mono

Version:

This package permit to have a centralized dotenv on a monorepo. It also includes some extra features such as manipulation and saving of changes to the dotenv file, a default centralized file, and a file loader with ordering and priorities.

37 lines 854 B
#!/usr/bin/env node import { DotenvConfig } from "./index"; /** * Generic object. */ type GenericObject<T = unknown> = { [key: string]: T; }; /** * Configuration option types. */ export declare enum OptionType { boolean = 0, number = 1, string = 2, array = 3, object = 4, mapOfNumbers = 5 } /** * List of all Dotenv configuration options type. */ export declare const DotenvOptionsType: GenericObject<OptionType>; /** * Parse CLI parameter type. * @param option - value to parse * @param type - value type * @returns parsed option */ export declare function parseOption(option: string | undefined, type: OptionType): unknown; /** * Run CLI Dotenv runners. * @param runner */ export declare function runNodeCli(runner: (config: DotenvConfig) => unknown): unknown; export {}; //# sourceMappingURL=node-cli.d.ts.map