Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

jaywcjlove/uglify-js-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

57 Commits

Repository files navigation

uglify-js-export

Buy me a coffee npm version npm version npm year jsDelivr hits (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

Watchers

Forks

Packages

No packages published

Contributors 2

AltStyle によって変換されたページ (->オリジナル) /