Node-RED
  • home
  • about
  • blog
  • documentation
  • forum
  • flows
  • github
  • Home
    • node-red
    • events
    • httpAdmin
    • httpNode
    • log
    • runtime
    • server
    • util
    • init(...)
    • start(...)
    • stop(...)
    • version(...)
    • @node-red/runtime
    • comms
    • context
    • flows
    • library
    • nodes
    • projects
    • settings
    • init(...)
    • isStarted(...)
    • start(...)
    • stop(...)
    • version(...)
    • @node-red/util
    • i18n
    • log
    • util
    • init(...)
  • Globals

@node-red/util

This module provides common utilities for the Node-RED runtime and editor

i18n
log
util
init( settings )

i18n

Internationalization utilities

  • _( )
  • catalog( )
  • registerMessageCatalog( )
  • registerMessageCatalogs( )

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 )
  • evaluateJSONataExpression( expr, msg, callback )
  • evaluateNodeProperty( value, type, node, msg, callback )
  • generateId( )
  • getMessageProperty( msg, str )
  • getObjectProperty( msg, str )
  • normaliseNodeTypeName( name )
  • normalisePropertyExpression( str )
  • parseContextStore( value )
  • 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

Node-RED is a visual wiring tool for the Internet of Things.

A project of the JS Foundation.

  • GitHub
  • npm
  • Documentation
  • APIs
  • Flow Library
  • About
  • Code of Conduct
  • Community
  • Blog
  • Twitter
  • Forum
  • Slack