Answers for "nodejs btoa"

4

nodejs btoa

Buffer.from('Hello world!', 'binary').toString('base64')
Posted by: Guest on June-12-2020
1

atob nodejs

(function () {
  "use strict";

  var atob = require('atob');
  var b64 = "SGVsbG8sIFdvcmxkIQ==";
  var bin = atob(b64);

  console.log(bin); // "Hello, World!"
}());
Posted by: Guest on November-28-2020
1

rror: btoa is not defined

console.log(Buffer.from('Hello World!').toString('base64'));
Posted by: Guest on December-15-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language