UNPKG

ts-import

Version:

Import (compile and cache on the fly) TypeScript files dynamically with ease.

8 lines 266 B
import * as fs from 'node:fs'; export const checkIfFileExists = async (filePath) => { return fs.promises.stat(filePath); }; export const checkIfFileExistsSync = (filePath) => { return fs.statSync(filePath); }; //# sourceMappingURL=check-if-file-exists.js.map