@techmely/utils
Version:
Collection of helpful JavaScript / TypeScript utils
23 lines (19 loc) • 361 B
JavaScript
/*!
* @techmely/utils
* Copyright(c) 2021-2024 Techmely <techmely.creation@gmail.com>
* MIT Licensed
*/
import "./chunk-NYLAFCGV.mjs";
// src/isFileReadble.ts
import fs from "fs";
function isFileReadable(filename) {
try {
fs.accessSync(filename, fs.constants.R_OK);
return true;
} catch {
return false;
}
}
export {
isFileReadable
};