Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@hj91/node-red-contrib-stop-watch
Advanced tools
A Node-RED node that functions as a stopwatch, capable of starting, stopping, and resetting based on incoming messages.
A Node-RED node that functions as a stopwatch, capable of starting, stopping, and resetting based on incoming messages. The time is displayed in the format hh:mm:ss
.
To install this node, run the following command in your Node-RED user directory (typically ~/.node-red
):
npm install node-red-contrib-stop-watch
After installing, you can find the node in the "Bufferstack.IO" category within the Node-RED editor.
The node responds to messages with the following topics:
true
.true
.00:00:00
when the payload is true
.The node outputs the current stopwatch time as a string in the format hh:mm:ss
every second while running.
Here's an example flow demonstrating how to use the stopwatch node:
[{"id":"a1","type":"inject","z":"1","name":"Start","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"payload":"true","payloadType":"bool","topic":"start","x":150,"y":60,"wires":[["b1"]]},{"id":"a2","type":"inject","z":"1","name":"Stop","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"payload":"true","payloadType":"bool","topic":"stop","x":150,"y":120,"wires":[["b1"]]},{"id":"a3","type":"inject","z":"1","name":"Reset","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"payload":"true","payloadType":"bool","topic":"reset","x":150,"y":180,"wires":[["b1"]]},{"id":"b1","type":"stopwatch","z":"1","name":"Stopwatch","x":340,"y":120,"wires":[["debug1"]]},{"id":"debug1","type":"debug","z":"1","name":"Debug","active":true,"console":"false","complete":"payload","x":510,"y":120,"wires":[]}]
This project is licensed under the GPL-3.0 License. See the LICENSE file for details.
Created by Harshad Joshi.
FAQs
A Node-RED node that functions as a stopwatch, capable of starting, stopping, and resetting based on incoming messages.
We found that @hj91/node-red-contrib-stop-watch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.