function isTruthy ( value ) { return value !== undefined && value !== '0' && value . toUpperCase ( ) !== 'FALSE' ; } export function isTTY ( ) { const force = process . env [ 'FORCE_TTY' ] ; if ( force !== undefined ) { return isTruthy ( force ) ; } return ! ! process . stdout . isTTY && ! isTruthy ( process . env [ 'CI' ] ) ; }