easybase64
v0.0.4
Published
Image to Base64 text.
Downloads
12
Readme
About
Generate Base64 from Image files.
Getting Started
$ npm install -g easybase64Usage
$ easybase64 --i path/to/diruse createjs format and output json file.
$ easybase64 --i path/to/dir --format createjs --o output.jsonoptions
--i
target directory.
--format [optional]
--format createjs
output example
[
{
"type": "image",
"id": "/test/img/lena_std.jpg",
"src": "data:image/png;base64,/9j/4AAQSkZJRgABAQEAA.........."
}
]--o [optional]
output file target
--o output.json
--exts {String} [optional]
glob ext pattern.
default 'png,jpg,jpeg,gif'
Test
$ npm test