📌  相关文章
📜  javascript 终端 base64 编码器 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:53.698000             🧑  作者: Mango

代码示例1
// 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}