From 6a28ecfbc2037a7b07e7c2a4c240af869b1ad733 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Sun, 29 Apr 2018 17:35:30 +0100 Subject: [PATCH] Fixup Base64 node and add better tests Revert correct <-> behaviour, make encoding info clearer, added type checking - to close #401 and close #437 --- parsers/base64/70-base64.html | 5 +- parsers/base64/70-base64.js | 35 +++++--- parsers/base64/package.json | 2 +- test/parsers/base64/70-base64_spec.js | 123 ++++++++++++++++++++++++++ 4 files changed, 148 insertions(+), 17 deletions(-) diff --git a/parsers/base64/70-base64.html b/parsers/base64/70-base64.html index e8ac133f..780df599 100644 --- a/parsers/base64/70-base64.html +++ b/parsers/base64/70-base64.html @@ -4,7 +4,7 @@ @@ -22,7 +22,8 @@

A function that converts the chosen property (default msg.payload) to and from base64 format.

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

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

-

You can also fix conversion string to base64,and base64 to string if required.

+

You can also fix coding into base64, and base64 to buffer if required.

+

Note: Using "Encode to Base64" will encode an already encoded string.