Iosevka/checkenv.js
2020-01-03 17:38:34 -08:00

18 lines
406 B
JavaScript

"use strict";
const which = require("which");
const colors = require("colors/safe");
function check(util) {
try {
which.sync(util);
console.error(colors.green(`External dependency <${util}> is present.`));
} catch (e) {
console.error(colors.red(`External dependency <${util}> not found.`));
}
}
check("otfccdump");
check("otfccbuild");
check("ttfautohint");
check("otf2otc");