1// Copy the following code into a file.js to parse values from terminal
2function getBase64(base64) {
3 return Buffer.from(base64).toString('base64');
4 }
5console.log(getBase64(process.argv[2]));
6
7// In terminal write the following granted nodejs is installed.
8// node {filename}.js {string you want to convert to base64}