Answers for "javascript terminal base64 encoder"

0

javascript terminal base64 encoder

// Copy the following code into a file.js to parse values from terminal
function getBase64(base64) {
    return Buffer.from(base64).toString('base64');
  }
console.log(getBase64(process.argv[2]));

// In terminal write the following granted nodejs is installed.
// node {filename}.js {string you want to convert to base64}
Posted by: Guest on April-26-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language