@oxog/environment-detector
Version:
Comprehensive, zero-dependency environment detection for Node.js
8 lines • 461 B
TypeScript
import * as fs from 'fs';
export declare function fileExists(path: string): boolean;
export declare function readFile(path: string): string | null;
export declare function fileExistsAsync(path: string): Promise<boolean>;
export declare function readFileAsync(path: string): Promise<string | null>;
export declare function isDirectory(path: string): boolean;
export declare function getFileStats(path: string): fs.Stats | null;
//# sourceMappingURL=file.d.ts.map