CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-sindresorhus--slugify

Slugify a string with comprehensive Unicode transliteration and extensive customization options

94

1.34x
Overview
Eval results
Files

rubric.jsonevals/scenario-6/

{
  "context": "This criteria evaluates how well the engineer uses @sindresorhus/slugify's transliteration control feature to optimize performance for ASCII content while properly handling Unicode content based on requirements.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Import slugify function",
      "description": "Imports the slugify function from @sindresorhus/slugify package",
      "max_score": 10
    },
    {
      "name": "Use separator option",
      "description": "Configures slugify with separator option set to '_' (underscore) for filename generation",
      "max_score": 15
    },
    {
      "name": "Performance optimization path",
      "description": "Uses transliterate: false option when preserveUnicode is true or for ASCII-only content to skip unnecessary transliteration processing",
      "max_score": 30
    },
    {
      "name": "Transliteration enabled path",
      "description": "Uses transliterate: true (or default) when converting Unicode to ASCII equivalents",
      "max_score": 25
    },
    {
      "name": "Conditional logic implementation",
      "description": "Implements logic to choose between transliteration modes based on the preserveUnicode option",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-sindresorhus--slugify

tile.json