idi-custom-nodered
v1.0.0
Published
Custom Node-RED nodes and utilities - IDI Timestamp node for adding timestamps to messages
Maintainers
Readme
IDI Custom Node-RED
Custom Node-RED nodes and utilities for IDI projects.
Installation
npm install idi-custom-noderedUsage
const idiNodes = require('idi-custom-nodered');
// Use utility functions
const timestamp = idiNodes.utils.formatTimestamp();
console.log(timestamp);
// Register with Node-RED (if using in Node-RED environment)
idiNodes.registerNodes(RED);API
Utils
formatTimestamp(date)- Format a date as ISO stringvalidateConfig(config)- Validate node configuration objectdeepMerge(target, source)- Deep merge two objects
License
MIT
