@shipengine/connect
Version:
The official developer tooling for building ShipEngine connect apps
19 lines • 460 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.fileExists = void 0;
const tslib_1 = require("tslib");
const fs = tslib_1.__importStar(require("fs"));
/**
* Check to see if a file exists
*/
async function fileExists(path) {
try {
await fs.promises.stat(path);
return true;
}
catch (error) {
return false;
}
}
exports.fileExists = fileExists;
//# sourceMappingURL=file-exists.js.map