deno.land / x / hono@v4.2.5 / utils / color.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
export function getColorEnabled() { // eslint-disable-next-line @typescript-eslint/no-explicit-any const { process, Deno } = globalThis as any const isNoColor = typeof process !== 'undefined' ? // eslint-disable-next-line no-unsafe-optional-chaining 'NO_COLOR' in process?.env : typeof Deno?.noColor === 'boolean' ? (Deno.noColor as boolean) : false return !isNoColor}
hono

Version Info

Tagged at
a month ago