0.0.9 • Published 2 months ago

@gregoriusrippenstein/node-red-contrib-uglifyjs v0.0.9

Weekly downloads
-
License
Don't do evil.
Repository
github
Last release
2 months ago

Node-RED node wrapping Uglify-JS

Simple node that using the uglify-js package to minify Javascript code.

The node calls minify passing the options defined in the nodes configuration.

All this nodes does is:

var UglifyJS = require("uglify-js");

const uggCfg = RED.util.evaluateNodeProperty(cfg.config, cfg.configType, node, msg)

msg.payload = UglifyJS.minify(msg.payload, uggCfg);

send(msg)

Configuration provided in the nodes property panel is passed directly to the Uglify-JS minify method.

One could say this is a wrapper node around the uglify-js package and one would be quite correct.

The usage example is also included in the package, Node-RED --> Import --> Examples:

img

Artifacts

0.0.9

2 months ago

0.0.8

2 months ago

0.0.7

3 months ago

0.0.6

6 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago