1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
node-red-nodes/parsers/base64
Ryoichi Obara 739b3e595c [ja] Support i18n 70-base64 node. (#591)
* [ja] Translate 70-base64 node.

* Fix PR review #591 "Buffer" -> "バッファ".

We have used Japanese katakana words of "buffer" in http-request and file-out nodes.

* Fix PR review #591 "Base64" -> "base64"

* Fix PR review #591 "Base64から文字列へデコード" -> "Base64から文字列へ変換"
2019-10-28 17:40:41 +00:00
..
icons add some icon love to extra parser nodes 2018-02-08 15:52:30 +00:00
locales [ja] Support i18n 70-base64 node. (#591) 2019-10-28 17:40:41 +00:00
70-base64.html [ja] Support i18n 70-base64 node. (#591) 2019-10-28 17:40:41 +00:00
70-base64.js [ja] Support i18n 70-base64 node. (#591) 2019-10-28 17:40:41 +00:00
LICENSE Update licenses and packages for all nodes 2016-11-06 20:26:19 +00:00
package.json Fixup Base64 node and add better tests 2018-04-29 17:36:18 +01:00
README.md update "core" extra nodes to use newer Buffer syntax 2017-06-24 13:53:22 +01:00

node-red-node-base64

A Node-RED node to encode and decode base64 format messages.

Install

Run the following command in your Node-RED user directory - typically ~/.node-red

npm i node-red-node-base64

Usage

A function that converts the msg.payload to and from base64 format.

If the input is a binary buffer it converts it to a Base64 encoded string.

If the input is a Base64 string it converts it back to a binary buffer.

Sample Flow

[{"id":"d2ccae00.2d335","type":"inject","name":"","topic":"","payload":"","payloadType":"none","repeat":"","crontab":"","once":false,"x":136,"y":99,"z":"385bdf8b.c7a42","wires":[["e03cae10.1fc35"]]},{"id":"b778ef09.48871","type":"base64","name":"","x":411.5,"y":160,"z":"385bdf8b.c7a42","wires":[["6295d1b1.9d6a3","46b597ba.b94a68"]]},{"id":"6295d1b1.9d6a3","type":"debug","name":"","active":true,"console":"false","complete":"false","x":610,"y":160,"z":"385bdf8b.c7a42","wires":[]},{"id":"ead9e7c9.152618","type":"debug","name":"","active":true,"console":"false","complete":"false","x":610,"y":240,"z":"385bdf8b.c7a42","wires":[]},{"id":"46b597ba.b94a68","type":"base64","name":"","x":411.5,"y":240,"z":"385bdf8b.c7a42","wires":[["ead9e7c9.152618"]]},{"id":"1c9124e9.e36edb","type":"inject","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":1775,"y":113,"z":"385bdf8b.c7a42","wires":[[]]},{"id":"48a892ea.b7576c","type":"debug","name":"","active":true,"console":"false","complete":"false","x":2171,"y":210,"z":"385bdf8b.c7a42","wires":[]},{"id":"e03cae10.1fc35","type":"function","name":"","func":"msg.payload = new Buffer.from(\"12345\");\nreturn msg;","outputs":1,"x":250,"y":160,"z":"385bdf8b.c7a42","wires":[["b778ef09.48871"]]}]