This module provides common utilities for the Node-RED runtime and editor
log
Logging utilities
- _( )
- addHandler( )
- audit( )
- debug( )
- error( )
- info( )
- log( )
- metric( )
- removeHandler( )
- trace( )
- warn( )
util
- cloneMessage( msg )
- compareObjects( obj1, obj2 )
- encodeObject( msg, opts )
- ensureBuffer( o )
- ensureString( o )
- evaluateEnvProperty( value, node )
- evaluateJSONataExpression( expr, msg, callback )
- evaluateNodeProperty( value, type, node, msg, callback )
- generateId( )
- getMessageProperty( msg, expr )
- getObjectProperty( msg, expr )
- normaliseNodeTypeName( name )
- normalisePropertyExpression( str )
- parseContextStore( key )
- prepareJSONataExpression( value, node )
- setMessageProperty( msg, prop, value, createMissing )
- setObjectProperty( msg, prop, value, createMissing )
init(settings)
Initialise the module with the runtime settings
Parameters:
Name | Type | Description |
---|---|---|
settings |
Object
|