UNPKG

calibre

Version:

Performance monitoring with Synthetic testing, Chrome UX Report, and Real User Metrics

11 lines (8 loc) 267 B
import chalk from 'chalk' const toGradeScore = score => { if (score >= 90) return chalk.green.bold(score) if (score > 50 && score < 90) return chalk.yellow.bold(score) if (score <= 50) return chalk.red.bold(score) return 'N/A' } export default toGradeScore