feat: add potrace converter

This commit is contained in:
A Fox 2025-05-05 21:03:53 -05:00 committed by A. Fox
parent cb9d0ec680
commit bdbd4a122c
4 changed files with 54 additions and 1 deletions

View file

@ -124,6 +124,16 @@ if (process.env.NODE_ENV === "production") {
}
});
exec("potrace -v", (error, stdout) => {
if (error) {
console.error("potrace is not installed");
}
if (stdout) {
console.log(stdout.split("\n")[0]);
}
});
exec("bun -v", (error, stdout) => {
if (error) {
console.error("Bun is not installed. wait what");