Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
Base64 encoded text
node v18.11.0
version:
2.0.0
endpoint
share
tweet
let input = 'http://redirected.url'; let buffer = new Buffer.from(input); let base64data = buffer.toString('base64'); console.log(input + ' converted to Base64 is ' + base64data );
Simple code to encode a text in Base64
Loading…
no comments
sign in
to comment