Answers for "btoa with buffer"

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language