const enabled = ( ) => ! process . env . NO_COLOR && ! process . env . MIKRO_ORM_NO_COLOR && process . env . FORCE_COLOR !== '0' ; const wrap = ( fn ) => ( text ) => enabled ( ) ? fn ( text ) : text ; internal export const colors = { red : wrap ( ( text ) => `\x1B[31m${ text }\x1B[39m` ) , green : wrap ( ( text ) => `\x1B[32m${ text }\x1B[39m` ) , yellow : wrap ( ( text ) => `\x1B[33m${ text }\x1B[39m` ) , grey : wrap ( ( text ) => `\x1B[90m${ text }\x1B[39m` ) , cyan : wrap ( ( text ) => `\x1B[36m${ text }\x1B[39m` ) , enabled , } ;