image2base64-cli

A CLI tool to convert image file to base64 string.


Keywords
image, base64, cli
License
MIT
Install
npm install image2base64-cli@2.4.1

Documentation

image2base64-cli

Dependency Status devDependency Status Build Status: Linux Build Status: Windows npm version Downloads type-coverage

A CLI tool to convert image file to base64 string.

install

yarn global add image2base64-cli

usage

image2base64-cli favicon.ico --scss

or

image2base64-cli *.ico --scss variables.scss

or

image2base64-cli *.ico --less variables.less

or

image2base64-cli *.ico --es6 variables.js

or

image2base64-cli *.ico --scss variables.scss --less variables.less --json variables.json --es6 variables.js --base demo

or

image2base64-cli *.ico --scss variables.scss --less variables.less --json variables.json --es6 variables.js --base demo --watch

change logs

// v2
the variable name will be the whole path relative to `base`(by `--base basename`)

// v1
the variable name is the name of the image file