UNPKG

cn-font-split

Version:

划时代的字体切割工具,CJK与任何字符!支持 otf、ttf、woff2 字体多线程切割,完美地细颗粒度地进行包大小控制。A revolutionary font subetter that supports CJK and any characters! It enables multi-threaded subset of otf, ttf, and woff2 fonts, allowing for precise control over package size.

26 lines (25 loc) 842 B
import { readFileSync as e } from "fs"; import { execSync as t } from "child_process"; //#region src/node/isMusl.ts var n = () => { let e = !1; return process.platform === "linux" && (e = r(), e === null && (e = i()), e === null && (e = a())), !!e; }, r = () => { try { return e("/usr/bin/ldd", "utf-8").includes("musl"); } catch { return null; } }, i = () => { let e = typeof process.report.getReport == "function" ? process.report.getReport() : null; return e ? e.header && e.header.glibcVersionRuntime ? !1 : !!(Array.isArray(e.sharedObjects) && e.sharedObjects.some((e) => e.includes("libc.musl-") || e.includes("ld-musl-"))) : null; }, a = () => { try { return t("ldd --version", { encoding: "utf8" }).includes("musl"); } catch { return !1; } }; //#endregion export { n as isMusl }; //# sourceMappingURL=isMusl.mjs.map