Skip to content

A collection of (moderns) useful tools for Node-RED

Notifications You must be signed in to change notification settings

clement-berard/node-red-contrib-ultimate-toolkit

Repository files navigation

node-red-contrib-ultimate-toolkit

A collection of utilities to help you build your Node-RED flows.


Build with node-red-dxp

Contributors Forks Stargazers Issues

NPM Version NPM Downloads

Overview

This package provides a set of utilities to help you build your Node-RED flows.

Convert, format, and manipulate your data with ease.

Essentially based on es-toolkit and radash

If native Node.js are available, they are used instead of the libraries.

One node to rule them all!

Features

Array Utilities

  • groupBy
  • keyBy
  • sum
  • toggle
  • unique

String Utilities

  • camelCase
  • capitalize
  • constantCase
  • escape
  • kebabCase
  • lowerCase
  • lowerFirst
  • pascalCase
  • snakeCase
  • startCase
  • trim
  • trimEnd
  • trimStart
  • unescape
  • upperCase
  • upperFirst
  • words

Utility Functions

  • eq
  • gt
  • gte
  • lt
  • lte
  • now
  • toBoolean
  • toBooleanNumber
  • toNumber
  • toNumberNonStrict
  • toSafeInteger
  • toString

Predicates

  • isBoolean
  • isIp
  • isNaN
  • isNil
  • isNull
  • isNumber
  • isString
  • isUndefined
  • isUrl

Object Utilities

  • getKeys

Network Utilities

  • ipInformation
  • ipVersion
  • networkInterfaces

Math Utilities

  • abs
  • acos
  • asin
  • atan
  • ceil
  • cos
  • exp
  • floor
  • log
  • mean
  • median
  • random
  • round
  • sin
  • sum
  • tan
  • trunc

Performance

All used libraries are treeshaked and included in the final bundle. No extra dependencies are added.

Very small distribution size ~ 20kb.

Contributing

This package use node-red-dxp to build the package. A crazy fast and easy way to build Node-RED package.

Please feel free to contribute to this package by creating issues or pull requests.

License

MIT