Socket
Book a DemoInstallSign in
Socket

@gregoriusrippenstein/node-red-contrib-uglifyjs

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gregoriusrippenstein/node-red-contrib-uglifyjs

Node-RED wrapper node around the uglify-js package.

latest
Source
npmnpm
Version
0.0.9
Version published
Maintainers
1
Created
Source

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

Keywords

node-red

FAQs

Package last updated on 14 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts