CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-tldts

Library to work against complex domain names, subdomains and URIs

82

1.03x
Quality

Pending

Does it follow best practices?

Impact

82%

1.03x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-1/

{
  "context": "This evaluation assesses how well the engineer uses the tldts library to parse domain names and extract public suffix information, particularly testing their understanding of the library's handling of the Public Suffix List including multi-level TLDs and wildcard/exception rules.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses tldts library",
      "description": "Solution imports and uses the tldts package (or tldts-core) rather than implementing custom suffix parsing logic",
      "max_score": 15
    },
    {
      "name": "Uses parse function",
      "description": "Solution uses the tldts `parse()` function (or equivalent `parseDomain()`) to extract domain components from the hostname",
      "max_score": 20
    },
    {
      "name": "Extracts publicSuffix field",
      "description": "Solution correctly accesses and returns the `publicSuffix` field from the tldts parse result to identify the TLD/public suffix",
      "max_score": 15
    },
    {
      "name": "Extracts domain field",
      "description": "Solution correctly accesses and returns the `domain` field from the tldts parse result to get the registrable domain",
      "max_score": 15
    },
    {
      "name": "Extracts subdomain field",
      "description": "Solution correctly accesses and returns the `subdomain` field from the tldts parse result to identify the subdomain portion",
      "max_score": 15
    },
    {
      "name": "Handles multi-level TLDs",
      "description": "Solution correctly handles multi-level public suffixes (like co.uk, gov.au) by relying on tldts's built-in Public Suffix List support rather than custom logic",
      "max_score": 10
    },
    {
      "name": "Wildcard rule support",
      "description": "Solution correctly handles domains affected by wildcard rules in the Public Suffix List by using tldts's suffix matching (no custom wildcard implementation needed)",
      "max_score": 10
    }
  ]
}

tile.json