Skip to content
moonbit-communityPublic

About

A slightly faster JavaScript mangler/compressor for MoonBit.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

42 Commits

Folders and files

Repository files navigation

A JavaScript mangler/compressor for MoonBit, built for the MoonBit JS backend.

This repository is a MoonBit workspace with two modules:

  • minifier/ — the moonbit-community/evol-minifier library: parse modern JavaScript, resolve scopes, rename local identifiers, and print minimal equivalent output.
  • evol/ — the moonbit-community/evol command-line program: read a file (or stdin) and write the minified result.

The CLI exits with a nonzero status on input or argument errors. --help and --version exit successfully.

CLI options

  • --top: preserve top-level binding names while renaming local bindings.
  • --output <path>: write to the specified file; use - for stdout. When omitted or empty, path/to/file.js produces path/to/file.min.js. Stdin input requires an explicit output destination.
evol --top input.js
evol input.js --output output.js
evol input.js --output -

About

A slightly faster JavaScript mangler/compressor for MoonBit.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages