
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
node-red-nodegen
Advanced tools
Node generator is a command line tool to generate Node-RED nodes based on various sources such as an OpenAPI (Swagger) document, a Node-RED Function node, or a Web Of Things Thing description. It helps developers dramatically reduce the time to implement Node-RED nodes.
Install node generator globally to make the node-red-nodegen
command available on your path:
npm install -g node-red-nodegen
You may need to run this with sudo
, or from within an Administrator command shell.
Usage:
node-red-nodegen <source file or URL> [-o <path to save>] [--prefix <prefix string>] [--name <node name>] [--module <module name>] [--version <version number>] [--keywords <keywords list>] [--category <node category>] [--icon <png or gif file>] [--color <node color>] [--tgz] [--help] [--wottd] [--encoding <encoding>] [--encodekey <encoding key>] [--lang <accept-language>] [-v]
Description:
Node generator for Node-RED
Supported source:
- OpenAPI document
- Function node (js file in library, "~/.node-red/lib/function/")
- Subflow node (json file of subflow)
- (Beta) Thing Description of W3C Web of Things (jsonld file or URL that points jsonld file)
Options:
-o : Destination path to save generated node (default: current directory)
--prefix : Prefix of npm module (default: "node-red-contrib-")
--name : Node name (default: name defined in source)
--module : Module name (default: "node-red-contrib-<node name>")
--version : Node version (format: "number.number.number" like "4.5.1")
--keywords : Additional keywords (format: comma separated string, default: "node-red-nodegen")
--category : Node category (default: "function")
--icon : PNG file for node appearance (image size should be 10x20)
--color : Color for node appearance (format: color hexadecimal numbers like "A6BBCF")
--tgz : Save node as tgz file
--help : Show help
--wottd : explicitly instruct source file/URL points a Thing Description
--encoding : Encoding scheme of subflow (none or AES)
--encodekey : Encoding key of subflow
--lang : Language negotiation information when retrieve a Thing Description
-v : Show node generator version
-> You can use swagger-petstore node on Node-RED flow editor.
-> You can use lower-case node on Node-RED flow editor.
-> You can use Example Thing node on Node-RED flow editor.
-> You can use Example Thing node on Node-RED flow editor.
-> You can use qrcode node on Node-RED flow editor.
Note: Currently node generator supports GET and POST methods using JSON format without authentication.
FAQs
Node generator for Node-RED
The npm package node-red-nodegen receives a total of 25 weekly downloads. As such, node-red-nodegen popularity was classified as not popular.
We found that node-red-nodegen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.