Base64, Basic authentication header value with Node.js

Buffer.from('login:password').toString('base64'); // bG9naW46cGFzc3dvcmQ=