It does all sorts of text manipulation. For example, I use it to manipulate the HTML file of another node.
After getting the HTML text of the node, the String Node performs a Find & Replace for the hex string of the background color of the node. The flow then re-saves the node's HTML file. This changes the background color for the node from what the developer has setup.
It probably has 30+ different ways to manipulate a text string
So I had a switch node (this is a flow that has been working for a long time) but needed to now make it's input into lowercase
What I hadn't realised was that it was working on msg.payload.status not msg.payload so that is why everything was failing on me when trying to convert an object to lowercase
And unfortunately, the error messages didn't provide a clue to this
The cognitive bias to remain ignorant to other code and ways is not an enlightened approach.
You could simply use a simple JSONata expression in the switch node property. Not that difficult to learn or understand. and makes the flow shorter and adds no more complexity in my opinion.
No, not the key pharse. just politeness as to mitigate some offense that may be taken.
Simple JSONata and Javascript expression, are really not that difficult, but if you never try you will never improve. Mistakes are a learning tool/lesson.
Not really, but do have a keen understanding of it's nuances. This came from trial and error.
You are free to make any choices you like in this world. They may turn out not be the best choices however. You are still free to make them.
Not to start a philosophical argument but I am going to have a different opinion here. Node Red was created as a graphical tool. Therefore, if the Node Red folks or community developer has created a node that will do the job that would otherwise require JSONata or Javascript, why not use it? To take it to the extreme, I don't need to know the language that Microsoft Word was written to compose a letter.
I'm glad I'm not the only one who does this! I may, however, hold the record for how often! We'll never know because I have nothing more to say on the subject.