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-2/

{
  "context": "This criteria evaluates how well the engineer uses the @sindresorhus/slugify package to convert programming identifiers (camelCase, PascalCase) into URL-friendly slugs, specifically leveraging the package's built-in decamelization capability.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses slugify function",
      "description": "The implementation imports and uses the default slugify function from @sindresorhus/slugify package",
      "max_score": 30
    },
    {
      "name": "Leverages decamelize option",
      "description": "The solution correctly uses the decamelize option (enabled by default) to handle camelCase and PascalCase conversion, rather than implementing custom string parsing logic",
      "max_score": 35
    },
    {
      "name": "Correct separator usage",
      "description": "The implementation produces slugs with hyphen separators (the default separator behavior), resulting in properly formatted slug output",
      "max_score": 20
    },
    {
      "name": "Handles all test cases",
      "description": "The solution correctly handles all specified test cases: camelCase identifiers, PascalCase identifiers, mixed case with numbers, and consecutive uppercase letters",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-sindresorhus--slugify

tile.json