Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createSVG().then(() => {
const TTF_PATH = path.join(ORBIT_ICONS_DIR, "orbit-icons.ttf");
const TTF = svg2ttf(fs.readFileSync(path.join(ORBIT_ICONS_DIR, "orbit-icons.svg"), "utf8"), {});
fs.writeFileSync(TTF_PATH, Buffer.from(TTF.buffer));
fs.writeFileSync(
path.join(ORBIT_ICONS_DIR, "orbit-icons.woff2"),
ttf2woff2(fs.readFileSync(TTF_PATH)),
);
});