An open API service indexing awesome lists of open source software.

https://github.com/itsvinayak/node-red-contrib-dictionary

a dictionary node for node-red
https://github.com/itsvinayak/node-red-contrib-dictionary

node node-red node-red-config node-red-contrib node-red-flow nodejs

Last synced: 10 months ago
JSON representation

a dictionary node for node-red

Awesome Lists containing this project

README

          

# node-red-contrib-dictionary [![Node.js CI](https://github.com/itsvinayak/node-red-contrib-dictionary/actions/workflows/npm-ci.yml/badge.svg)](https://github.com/itsvinayak/node-red-contrib-dictionary/actions/workflows/npm-ci.yml)

### dictionary node for node-red

A dictionary is a general-purpose data structure for storing a group of objects. It is a set of keys with a single associated value.

### Example of dictionary

```
{
"living": {
"men": "20",
"women": "10",
"children": "3"
},
"nonliving": {
"table": "6"
},
"food items": "10"
}
```

## What this node does:

this node takes a dictionary/json and allows the user to create an other dictionary, based on user keys and values ( path of objects )

**Input:**

```
{
"living": {
"men": "20",
"women": "10",
"children": "3"
},
"nonliving": {
"table": "6"
},
"food items": "10"
}
```

**Output:**

```
{
"living men": "20",
"nonliving table": "6"
}
```

Screenshot 2022-10-21 at 10 36 59 AM

### Node config :

Screenshot 2022-10-21 at 10 39 11 AM

### Output :

Screenshot 2022-10-21 at 10 41 09 AM