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

node-red-contrib-display-property

v1.0.0

Published

A simple node that displays as its status the value of a message property that passes the node and optional the date/time when the message passed.

Downloads

71

Readme

npm downloads

node-red-contirb-display-property

A simple node that displays as its status the value of a message property that passes the node. Optional it can be configured to also show the daten and/or the time when the message passed. The intention of this node is to give you a better overview of the messages that pass your flows and support you debugging your flows by easily displaying the content of massage properties.

Quick Start

Install from your Node-RED Manage Palette or using npm:

npm install node-red-contrib-display-property

Example

grafik

[{"id":"d2a1b91.5e11c48","type":"display property","z":"f30078ab.f99208","name":"","property":"","x":500,"y":380,"wires":[[]]},{"id":"72e1bfe.11b244","type":"inject","z":"f30078ab.f99208","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"This is my payload","payloadType":"str","x":290,"y":380,"wires":[["d2a1b91.5e11c48"]]}]

Help

This documentation is also available in the help section of the node. This node accepts any massage at the input and passes exactly the same massage to the output. It can be configured to display the content of a certain property (default is msg.payload) of the message that passes the node. This content will be displayed as the status of the node along the the daten and/or time when it passed. My intention for creating this little node was to get a better overview of what values running throug my nodes without the need to put debug nodes everywhere. So this can also be handy for debugging your flows by displaying the content of massages property.

Two options to display the value of a property:

You can either provide the name of the property you want to display in the configuration of the node or you can pass the name of the property you want to display as msg.property to the node.

To display for example the content of msg.topic you have two options:

  1. add msg.topic as the property in the configuration of the node, or
  2. pass a message with msg.property and content msg.topic to the node.

No need to mention that you can also display any other properties :-)

What else should you know about this node?

If you pass a msg.property, this will override the settings in the node-configuration. If the message does not have a property, either configured in the node or passed via msg.property, the content of msg.payload (the default) will be displayed instead.

Bugs and feature requests

Please report any issues or enhancement requests at GitHub.