Source-preserving JavaScript transforms

@stackline/redeyed

Wrap or replace selected tokens without rebuilding the source, moving comments, or mutating the caller's configuration.

npm install @stackline/redeyed
v1.0.1Node 12+TypeScript 3.9-7.0Esprima default

Runs the production browser bundle

Token transformer

JavaScript source

0 characters

Transformed source

0 tokens0 commentsAST off
Ready

Lowest-change migration

Keep existing imports

Use an npm alias to retain the historical package name and callable API.

npm install redeyed@npm:@stackline/redeyed
const redeyed = require('redeyed')

Public contract

Synchronous, source-retaining output

Full reference
SurfacePurposeDefault
redeyed(code, config, options?)Tokenize and transform sourceEsprima tokenizer
buildAstReturn a parsed AST with tokensfalse
parserUse an Esprima-compatible parserEsprima 4
nojoinReturn source splits without joiningfalse

Release evidence

Behavior is measured

226
upstream and regression assertions
1,230
differential executions
95.59%
core line coverage
174
Cardinal downstream assertions

Portable reference

Human and machine-readable docs

API, parser boundaries, migration, security, and embedded third-party terms remain readable without client rendering.