UNPKG

hono

Version:

Web framework built on Web Standards

10 lines (9 loc) 285 B
// src/utils/color.ts function getColorEnabled() { const { process, Deno } = globalThis; const isNoColor = typeof process !== "undefined" ? "NO_COLOR" in process?.env : typeof Deno?.noColor === "boolean" ? Deno.noColor : false; return !isNoColor; } export { getColorEnabled };