CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-shebang-regex

Regular expression for matching Unix shebang lines at the beginning of files

88

1.54x
Overview
Eval results
Files

Evaluation results

100%

55%

Script Metadata Extractor

Shebang line extraction (full line with #!)

Criteria
Without context
With context

Imports shebang-regex

100%

100%

Uses exec() method

0%

100%

Extracts full line

0%

100%

Handles null results

100%

100%

Returns correct value

100%

100%

95%

25%

Script File Validator

Shebang detection (test for presence)

Criteria
Without context
With context

Package import

0%

66%

test() method usage

50%

100%

Correct return type

100%

100%

Array filtering implementation

100%

100%

Proper content access

100%

100%

100%

75%

Script File Validator

Start-of-string anchoring behavior understanding

Criteria
Without context
With context

Imports shebang-regex

100%

100%

Uses .test() method

0%

100%

Relies on anchoring

0%

100%

Returns boolean correctly

50%

100%

100%

25%

Script Interpreter Analyzer

Interpreter path extraction (without #! prefix)

Criteria
Without context
With context

Package import

100%

100%

exec() method usage

0%

100%

Capture group extraction

100%

100%

Null/undefined handling

100%

100%

Correct return values

100%

100%

100%

43%

Script File Validator

Edge cases and limitations (whitespace, line positioning, validation)

Criteria
Without context
With context

Import shebang-regex

100%

100%

Use .test() method

0%

100%

Understand ^ anchor

26%

100%

Detect misplaced shebangs

100%

100%

Handle all categories

100%

100%

100%

45%

Script Interpreter Analyzer

Regex capture group manipulation and parsing

Criteria
Without context
With context

Import shebang-regex

100%

100%

Use exec() method

0%

100%

Access full shebang

100%

100%

Access interpreter path

0%

100%

Handle null results

100%

100%

Parse interpreter name

100%

100%

70%

5%

Script Analyzer

Null safety and error handling for non-matching strings

Criteria
Without context
With context

Uses shebang-regex package

100%

0%

Uses exec() method

0%

100%

Accesses capture group

100%

100%

Null safety pattern

100%

100%

Uses test() method

0%

0%

85%

37%

Script Interpreter Analyzer

Greedy capture pattern for complex interpreter specifications

Criteria
Without context
With context

Uses shebangRegex

50%

100%

Uses test method

0%

0%

Uses exec method

0%

100%

Extracts full shebang

30%

100%

Extracts interpreter path

100%

100%

Parses greedy capture

100%

100%

43%

-32%

Script Interpreter Analyzer

Universal interpreter support (any interpreter type)

Criteria
Without context
With context

Import shebang-regex

100%

80%

Use test() method

100%

0%

Use exec() method

0%

33%

Extract full shebang

66%

33%

Extract interpreter path

75%

25%

Handle null results

100%

66%

Support multiple interpreters

100%

100%

Install with Tessl CLI

npx tessl i tessl/npm-shebang-regex
Evaluated
Agent
Claude Code

Table of Contents