CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-bowser

Lightweight browser detector for parsing user agent strings to extract browser, OS, platform, and engine information

93

1.63x

Evaluation93%

1.63x

Agent success when using this tile

Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "context": "This evaluation assesses how well the engineer uses the Bowser package to retrieve and preserve original User-Agent strings. The focus is on proper usage of Bowser's parsing API (Bowser.getParser() or Bowser.parse()) and the getUA() method to access the original unmodified User-Agent string.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Parser initialization",
      "description": "Uses Bowser.getParser() or Bowser.parse() to initialize a parser instance with the User-Agent string in both extractUserAgent and validateUserAgent functions",
      "max_score": 25
    },
    {
      "name": "Browser name extraction",
      "description": "Uses getBrowserName() method from the parser instance to extract the browser name in the extractUserAgent function",
      "max_score": 15
    },
    {
      "name": "Browser version extraction",
      "description": "Uses getBrowserVersion() method from the parser instance to extract the browser version in the extractUserAgent function",
      "max_score": 15
    },
    {
      "name": "Original UA retrieval",
      "description": "Uses getUA() method from the parser instance to retrieve the original unmodified User-Agent string in both functions",
      "max_score": 30
    },
    {
      "name": "Validation logic",
      "description": "Implements validation in validateUserAgent by checking if the parser can successfully extract browser information (e.g., checking if getBrowserName() or getBrowser() returns valid data)",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-bowser

tile.json