0.0.4 • Published 10 years ago

easybase64 v0.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

About

Generate Base64 from Image files.

Getting Started

$ npm install -g easybase64

Usage

$ easybase64 --i path/to/dir

use createjs format and output json file.

$ easybase64 --i path/to/dir --format createjs --o output.json

options

--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
0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago