Convert cron expressions into human readable descriptions
Overall
score
100%
{
"context": "This criteria evaluates how well the engineer understands and utilizes cronstrue's internationalization loading strategies, specifically the ability to load individual locales rather than the full i18n bundle to optimize bundle size.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses toString function",
"description": "Code imports cronstrue and correctly uses the toString() function (or cronstrue.toString()) to convert cron expressions to human-readable descriptions",
"max_score": 20
},
{
"name": "Individual locale imports",
"description": "Code imports individual locale files (e.g., require('cronstrue/locales/fr'), require('cronstrue/locales/es')) rather than the full i18n bundle (cronstrue/i18n), demonstrating understanding of bundle size optimization",
"max_score": 35
},
{
"name": "Locale option usage",
"description": "Code passes the locale parameter correctly in the options object to toString() (e.g., toString(expression, { locale: 'fr' }))",
"max_score": 25
},
{
"name": "Fallback handling",
"description": "Code implements appropriate fallback behavior for unsupported locales by either calling toString() with 'en' locale when an unsupported locale is requested, or by handling the case where a locale is not available",
"max_score": 20
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-cronstruedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10