UNPKG

curaprofile2json

Version:

input curaprofile and output json

20 lines 573 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const fs_1 = __importDefault(require("fs")); exports.default = (path, exit = true) => { try { fs_1.default.accessSync(path); return true; } catch (err) { if (exit) { console.error(`${path} not found`); process.exit(); } return false; } }; //# sourceMappingURL=fileExists.js.map