@nestjs-mod/common
Version:
A collection of utilities for unifying NestJS applications and modules
23 lines (22 loc) • 1.27 kB
TypeScript
import { ProjectUtilsConfiguration } from '../project-utils.configuration';
import { GitignoreService } from './gitignore-file';
import { WrapApplicationOptionsService } from './wrap-application-options.service';
export declare class DotEnvService {
private readonly wrapApplicationOptionsService;
private readonly projectUtilsConfiguration;
private readonly gitignoreService;
private logger;
constructor(wrapApplicationOptionsService: WrapApplicationOptionsService, projectUtilsConfiguration: ProjectUtilsConfiguration, gitignoreService: GitignoreService);
getEnvFilePath(): string | undefined;
keys(includeHiddenKeys?: boolean): (string | undefined)[];
readFile(envFile: string, updateProcessEnv?: boolean): Record<string, string | undefined> | undefined;
writeFile(envFile: string, data: Record<string, string | undefined>): Promise<void>;
getEnvironmentsFromFilesCheckSum(): Promise<{
processed: Record<string, {
fileList: string[];
sha256: string;
}>;
}>;
read(updateProcessEnv?: boolean, ignoreCheckNeededKeys?: boolean): Record<string, string | undefined> | undefined;
write(data: Record<string, string | undefined>, ignoreCheckNeededKeys?: boolean): Promise<void>;
}