CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-babel-plugin-transform-es2015-literals

Babel plugin that compiles ES2015 unicode string and number literals to ES5

86

0.97x
Overview
Eval results
Files

Evaluation results

100%

Code Transpilation Tool

Zero-configuration plugin design

Criteria
Without context
With context

Babel Core Import

100%

100%

Plugin Configuration

100%

100%

Transform Method Usage

100%

100%

Output Code Extraction

100%

100%

Binary Literal Transformation

100%

100%

Octal Literal Transformation

100%

100%

Unicode Escape Handling

100%

100%

45%

-55%

File Permission Manager

Octal literal transformation (0o/0O prefix to decimal)

Criteria
Without context
With context

Plugin installation

100%

0%

Babel configuration

100%

0%

Octal literal usage

100%

100%

Build script configuration

100%

0%

Successful transformation

100%

100%

100%

Binary Code Transformer

Binary literal transformation (0b/0B prefix to decimal)

Criteria
Without context
With context

Babel transform usage

100%

100%

Plugin registration

100%

100%

Configuration structure

100%

100%

Code output extraction

100%

100%

Binary literal handling

100%

100%

100%

Babel AST Property Cleaner

AST metadata manipulation via extra property deletion

Criteria
Without context
With context

Plugin structure

100%

100%

Visitor pattern

100%

100%

Extra property deletion

100%

100%

Binary/octal pattern detection

100%

100%

Unicode escape detection

100%

100%

Hexadecimal preservation

100%

100%

Test coverage

100%

100%

100%

Number Literal Method Transformer

Member expression integration with numeric literals

Criteria
Without context
With context

Babel core import

100%

100%

Plugin import

100%

100%

Plugin registration

100%

100%

Source code reading

100%

100%

Babel transformation

100%

100%

Output generation

100%

100%

Binary literal transformation

100%

100%

Octal literal transformation

100%

100%

55%

-1%

Browser-Compatible Build Configuration

Preset-env automatic inclusion based on target environments

Criteria
Without context
With context

@babel/preset-env usage

60%

50%

Target specification

88%

92%

Configuration structure

80%

70%

Automatic inclusion logic

0%

12%

100%

Unicode String Normalizer

Unicode string literal normalization

Criteria
Without context
With context

Uses @babel/core

100%

100%

Uses transform-literals plugin

100%

100%

Proper plugin configuration

100%

100%

Returns transformed code

100%

100%

Error handling

100%

100%

100%

35%

Hexadecimal to Decimal Literal Transformer

Generator integration pattern for code output

Criteria
Without context
With context

Plugin declaration

100%

100%

Visitor pattern implementation

100%

100%

Hexadecimal detection

100%

100%

Metadata manipulation

33%

100%

Generator delegation

25%

100%

Member expression handling

100%

100%

100%

10%

ES2015 Hexadecimal Literal Formatter

Visitor pattern implementation for AST traversal

Criteria
Without context
With context

Plugin wrapper usage

100%

100%

API version assertion

0%

100%

Plugin structure

100%

100%

NumericLiteral visitor

100%

100%

Hexadecimal detection

100%

100%

AST manipulation approach

100%

100%

Prefix normalization

100%

100%

Digit normalization

100%

100%

55%

-14%

JavaScript Code Transformation Pipeline

Safe plugin composition with no overlapping conflicts

Criteria
Without context
With context

Uses @babel/core

100%

100%

Uses transform-literals plugin

80%

0%

Multi-plugin composition

25%

50%

Correct plugin configuration

80%

100%

Order-independent execution

20%

0%

Correct output format

100%

100%

Install with Tessl CLI

npx tessl i tessl/npm-babel-plugin-transform-es2015-literals
Evaluated
Agent
Codex

Table of Contents