A command line tool for generating base64 code from an image(or url) or a directory that contains images.
Installation:
yarn global add base64-convertor
or
npm install -g base64-convertor
Usage:
base64-convertor <path>
Remember to replace <path>
above with your image or directory or an image url.
If you input an image path or url as the param, the converted base64 code will be output in your terminal directly. Otherwise if it's a directory, base64-convertor will output the result into base64.json file in current directory after the conversion completed.
MIT © 2017 RENAN.BAS