@background404/node-red-contrib-path-utils 0.0.1
Node-RED nodes for path manipulation using Node.js path module. Includes path-join for combining path segments and path-get for extracting path information.
@background404/node-red-contrib-path-utils
Node-RED nodes for path manipulation using Node.js path module. Combine path segments and extract path information.
Installation
npm install @background404/node-red-contrib-path-utils
Or install via Node-RED Palette Manager.
Nodes
path-join
Joins multiple path segments into a single normalized path.
Features:
- Multiple input types (string, msg property, flow/global context, current working directory)
- Output as absolute or relative paths
- Automatic path normalization
path-get
Extracts information from file paths.
Features:
- Multiple input types
- absolute/relative for dirname only
Extract options:
dirname
- Directory pathbasename
- Filename with extensionextname
- File extension onlyfilename
- Filename without extension
Input Types
String
- Direct text valueMessage Property
- Value from msg objectFlow Context
- Flow-scoped variableGlobal Context
- Global variableCurrent Working Directory
- Node-RED startup directory
Sample Flows
Example flows are included in the examples/
folder:
basic-example.json
- Simple usage examplescomprehensive-example.json
- All features demonstration
Import via Node-RED Menu → Import.