1.0.2 • Published 7 years ago

img2url v1.0.2

Weekly downloads
12
License
-
Repository
-
Last release
7 years ago

PNG to data URL

Converts PNG Images to a data URL.

Usage Commandline

img2url {PATH to Image} {PATH to Output File}

The Path to the Output File is optional, when you don´t set it the Path of the Image File was used.

Code Usage

const IMG2URL = require('img2url');
let cnv = new IMG2URL();

// do it Syncron
cnv.getUrlSync('/myimage.png');

// do it Asyncron
cnv.getUrl('/myimage.png', function (err, data) {
    // do something with the data...
});
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago