Node.js Base64 Encoding

April 15, 2020
const text = 'Hello World'

const base64 = Buffer.from(text).toString('base64')

const newText = Buffer.from(base64, 'base64').toString('ascii')
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.