Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
node-red-contrib-prib-functions
Advanced tools
Node-Red nodes for various functions:
Real time metrics which are recalculated on single of data point and posted in msg.result. Key and value can be selected from msg.payload. Sending message with topic"@stats" places message with all stats on second port. If realtime metrics then a third port is shown where the message is sent if it is an outlier being outside 3 standard deviations from mean. This can be changed to median and number of deviations.
A set of data analysis functions that can be run over an array of data
Single value metrics:
Array metrics:
Array data
example:
Translates a selected msg property to a target property. Messages generates a message for each row or record.
Transformations:
Note, snappy needs to be installed separately as can have issues with auto install as build binaries.
With xlsx object one can use the function in xlsx against the object in functions node.
Example AVRO with schema
For Confluence schema contains a list of schemas in form {"",}
Allows a test case for a message to allow simple testing of nodes. Injects a new message via mouse or message. Message sent to first port which can be consumed by other nodes and returned back to node in a loop. The Test node then checks against detailed expected payload result.
example:
after run
Append file(s) to payload. Cached to maximise performance. Require can be used to find file.
Test example:
The levenshtein distance between two character strings.
Inject messages for a set period of time with varying think time. Primary purpose is testing and useful for load/stress testing.
Test example:
Add on wire between two flows to see message rates in status line. Rate sampled every second and provides rate last second / 10 seconds / 1 minute / 5 minutes.
Test example:
Spawn process as per node.js manual with ability to set working directory, environment variables and argument passed to process. STDOUT and STDERR are sent as individual messages. RC port is sent a message on closure. Takes in messages that starts a process with ability to add environment values. Message can be sent to kill the process.
Test example:
Test if host is available sending msg to up or down port so action can be taken. Message only sent on state change or if message is sent which doesn't have topic refreshHostAvailable. This topic forces a check rather than time check which can be set.
Test example:
The metrics from node.js os
Test example:
Run the following command in the root directory of your Node-RED install
npm install node-red-contrib-prib-functions
Test/example flow in test/generalTest.json
0.17.0 Add finished wire to load injector
0.16.10 data analysis add eulcidean distance functions. Add array pairs
0.16.0 fix data analysis variance and stddev, add sample, add tests
0.14.2 fix general test flows. Add icon for data analysis
0.14.1 fix capitalization issue with levenshtein Distance
0.14.0 add xlsx transformer
0.13.0 Confluence AVRO message converter
0.12.0 added xml to json and json to xml. Make snappy installed separately as can cause install issues
0.11.1 Fix spelling of AVRO.
0.11.0 Transform for AVRO and snappy. Add JSON to CSV
FAQs
Node-RED added node functions.
We found that node-red-contrib-prib-functions demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.