image2base64-cli

2.4.1 • Public • Published

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

options

key description
-w,--watch watch mode
--base base directory
--json generate json file of variables
--scss generate scss file
--less generate less file
--es6 generate es6 file
-h,--help Print this message.
-v,--version Print the version

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

Readme

Keywords

Package Sidebar

Install

npm i image2base64-cli

Weekly Downloads

9

Version

2.4.1

License

MIT

Unpacked Size

11.8 kB

Total Files

5

Last publish

Collaborators

  • plantain_00