18 lines
406 B
JavaScript
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");
|