npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nodered-node-incubator

v0.1.1

Published

Node-RED node project incubator

Downloads

3

Readme

Node-RED Project Incubator :egg:

Install :zap:

To install the CLI tool, execute the following command:

npm install -g nodered-node-incubator

Usage :rocket:

Once installed, you can use the tool with by executing the node-inq command:

node-inq --help
Usage: node-inq [options] [command]

Nodes Project Incubator for Node-RED 🍼📦

Options:
-V, --version       output the version number
-h, --help          display help for command

Commands:
  generate [options]  Node-RED project generation tool
  nodes               Node-RED incubated nodes tool
  help [command]      display help for command

Generating Projects :package:

To generate a new Node-RED project execute the following commmand:

node-inq generate --help
Usage: node-inq generate [options]

Generate Node-RED node project template 🥚

Options:
  -i,--interactive           Enable interactive mode (default: false)
  -p, --project <directory>  Project directory
  -l, --license <type>       Project license (default: "MIT")
  -ts, --typescript          Generate typescript project (default: false)
  -e, --example              Import example node (default: false)
  -h, --help                 display help for command

Interactive :baby_chick:

It is highly recommened to use interactive mode to help you in the project generation process. Following is an example running the command:

node-inq generate --interactive
√ Enter project directory: ... node-red-contrib-example-project
√ Enter project author: ... Doth-J
√ Enter project description: ... Node-RED node generation example
√ Enter project license: ... ISC
√ Generate Typescript project: ... yes
√ Import template node: ... yes

🥚 Generating Node-RED project:
  - Directory: /home/doth/node-red-contrib-example-project ✔️
  - Language set to "Typescript" ✔️
  - Created nodes directory! ✔️
  - Created "package.json"! ✔️
  - Imported example node! 🐣

📕 Node-RED Incubator setup:
  - Installed required modules! ✔️
  - Created incubator server ✔️

📘 Typescript setup:
  - Installed required ts modules! ✔️
  - Created "tsconfig.json"! ✔️

✅ All done, project generated!
🖖 Let the Flow be with you

Command Line :scroll:

To use the command line tool, you only need to define the project option with the directory of the project as shown below:

node-inq generate --project ./example-project

🥚 Generating Node-RED node project:
  - Directory: /home/doth/example-project ✔️
  - Language set to "Javascript" ✔️
  - Created nodes directory! ✔️
  - Created "package.json"! ✔️

📕 Node-RED Incubator setup:
  - Installed required modules! ✔️
  - Created incubator server ✔️

✅ All done, project generated!
🖖 Let the Flow be with you

Importing Incubated Nodes :hatching_chick:

To import incubated nodes, execute the following command:

node-inq nodes
√ Enter project directory: ... example-project
√ Available nodes list: » Multi-out, Template, Topic

🐣 Importing incubated Node-RED node(s):
  - Imported multi-out node! 🐥
  - Imported example node! 🐥
  - Imported topic node! 🐥

Incubator Server :baby_bottle:

The tool creates an incubator folder containing a minimal Node-RED setup to get you started. Execute the following command to spin up your incubator server and fast track the development of your nodes:

npm run dev

Change the setting.js file accordingly to your project needs.

Have fun developing your nodes! :star: