Iosevka/checkenv.js

17 lines
387 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");