or run

npx @tessl/cli init
Log in

Version

Files

docs

index.md
tile.json

tessl/npm-cjs-module-lexer

High-performance CommonJS module lexer for detecting named exports and reexports from JavaScript source code

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/cjs-module-lexer@2.1.x

With Tessl

Agent performance with Tessl

93%

Improvement

Agent performance improvement using Tessl

-1%

To install, run

npx @tessl/cli install tessl/npm-cjs-module-lexer@2.1.0
OverviewEval results

Assessment results

Generated

Agent Claude Code

Scenario 1

Token parsing (strings, comments, templates, regex)

2%

Scenario 2

Grammar validation (ECMA-262 identifiers, surrogate pairs)

8%

Scenario 3

Basic export detection (exports.name, module.exports)

-8%

Scenario 4

Object.defineProperty getter and value detection

0%

Scenario 5

Performance optimizations (memory management, endian handling)

0%

Scenario 6

Module reexport detection (module.exports = require())

0%

Scenario 7

Star re-export pattern detection (__export, __exportStar)

-25%

Scenario 8

Parse function with exports and reexports extraction

0%

Scenario 9

Transpiler-specific Object.keys().forEach() patterns

20%

Scenario 10

TypeScript transpiler pattern recognition

0%