Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including node-red-contrib-yield with all npm packages installed. Try it out:

node-red-contrib-yield lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("node-red-contrib-yield/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

node-red-contrib-yield v1.0.2

Node-RED node to send multiple messages


This simple node sends messages passed from msg.payload separately down the flow. With this node, you can send multiple messages to the next node without having multiple outputs. The number of outputs is also dynamic.

You can turn this


into this:


Just pass in an array of messages as payload like shown in the flowing example:

msg.payload = [
    topic: 'topic-1',
    payload: 'payload-1',
    topic: 'topic-2',
    payload: 'payload-2',
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free