Skip to content
/ Njsast Public

WIP of .Net library to work with JavaScript source code

License

Notifications You must be signed in to change notification settings

Bobris/Njsast

Repository files navigation

Njsast

Build Status

.Net 8.0 library to work with JavaScript source code

It is library to Parse JavaScript to AST, Print from AST, Evaluate constants over multiple files, Minimize code (Optimize, Mangle), reads and generates SourceMaps, bundle multiple sources (could be created by TypeScript) into one or more including lazy loading. Coverage instrumentation and reporting. It is mostly focused on ES5, though there is code for ES2020 too just not that tested and compression quality need some work. AST itself is nearly 1:1 to UglifyJs. Also does NOT parse JSX, use TypeScript JSX to JS conversion.

This project takes a lot from UglifyJs, Terser, JINT projects.