======
npm install --save node-remote-base64
const remoteBase64 = require('node-remote-base64');
const getBase64 = () =>
remoteBase65('http://placehold.it/100x100')
.then(b64data => console.log(b64data))
.catch(err => console.log(err));
import remoteBase64 from 'node-remote-base64';
const getBase64 = async () => {
const b64data = await remoteBase65('http://placehold.it/100x100');
console.log(b64data);
}
npm test
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.