/base64-convertor

Convert images to base64.

Primary LanguageJavaScript

base64-convertor

A command line tool for generating base64 code from an image(or url) or a directory that contains images.

NPM Version NPM Downloads License

Getting Started

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.

About

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.

LICENSE

MIT © 2017 RENAN.BAS

Inspired by