License detector for UglifyJS that identifies and preserves license comments during minification
Overall
score
98%
Comment type detection (line vs block)
Comment Type Field Usage
100%
100%
Line Comment Detection
100%
100%
Block Comment Detection
100%
100%
Type Convention Understanding
40%
100%
License pattern matching with regex
Imports saveLicense function
0%
100%
Parses JavaScript with UglifyJS
0%
0%
Calls saveLicense correctly
0%
100%
Handles comment types
0%
100%
Filters based on return
0%
100%
Produces correct output
100%
100%
Integration with minification tools
UglifyJS import
100%
100%
uglify-save-license import
100%
100%
UglifyJS.minify usage
100%
100%
Comments option configuration
100%
100%
saveLicense integration
100%
100%
Return minified code
100%
100%
Zero-configuration detection
Package import
100%
100%
Function usage
100%
100%
License pattern detection
100%
100%
First-line detection
100%
100%
Parameter handling
100%
100%
Stateful cross-file processing
Imports uglify-save-license
100%
100%
Imports UglifyJS
100%
100%
Configures UglifyJS comments option
100%
100%
Processes multiple files
100%
100%
Reads input files
100%
100%
Applies minification with license preservation
100%
100%
Writes output files
100%
100%
Consecutive license comment detection
Import saveLicense
100%
100%
Integrate with minifier
100%
100%
Preserve consecutive blocks
100%
100%
Handle mixed comments
100%
100%
Minification execution
100%
100%
Edge case handling (separated blocks, mixed formats)
License regex pattern
33%
93%
Bang comment detection
70%
100%
First-line preservation
100%
100%
Stateful tracking variables
100%
100%
Consecutive comment logic
100%
100%
File boundary detection
100%
100%
State update mechanism
100%
100%
First-line comment preservation
uglify-save-license import
100%
100%
uglify-js import
100%
100%
Comment callback integration
33%
100%
UglifyJS.minify usage
100%
100%
First-line preservation
100%
100%
Handles both comment types
100%
100%
Basic API function (saveLicense)
Import saveLicense
100%
100%
Import UglifyJS
100%
100%
Use saveLicense function
100%
100%
Configure UglifyJS correctly
100%
100%
Read input file
100%
100%
Output minified code
100%
100%
Multi-criteria decision logic
License pattern matching
100%
100%
Bang comment detection
100%
100%
First-line preservation
100%
100%
Consecutive comment tracking
100%
100%
Cross-file state management
100%
100%
OR-based decision logic
100%
100%
Install with Tessl CLI
npx tessl i tessl/npm-uglify-save-licenseTable of Contents