Skip to content

About

A transform to make UglifyJS work in CommonJS.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

59 Commits

Folders and files

Repository files navigation

Using my app is also a way to support me:
Scap: Screenshot & Markup Edit Screen Test Deskmark Keyzer Vidwall Hub VidCrop Vidwall Mousio Hint Mousio Musicer Audioer FileSentinel FocusCursor Videoer KeyClicker DayBar Iconed Menuist Quick RSS Quick RSS Web Serve Copybook Generator DevTutor for SwiftUI RegexMate Time Passage Iconize Folder Textsound Saver Create Custom Symbols DevHub Resume Revise Palette Genius Symbol Scribe

uglify-js-export

Buy me a coffee Follow On X npm version npm version npm year CI

UglifyJS is a JavaScript parser, minifier, compressor and beautifier toolkit.

A transform to make UglifyJS work in CommonJS.

Installation

npm i uglify-js-export

Usage

import UglifyJS from 'uglify-js-export';

const code = "function add(first, second) { return first + second; }";
const result = UglifyJS.minify(code);

console.log(result.error); // runtime error, or `undefined` if no error
console.log(result.code);  // minified output: function add(n,d){return n+d}

License

Licensed under the MIT License.

About

A transform to make UglifyJS work in CommonJS.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages