img-cloud
A node client to easily upload to and retrieve from img-cloud server
Install
$ npm install --save img-cloud
Usage
Configuring your client
var imgCloud = ; imgCloud; // Vist http://www.imgcloud.io to find out how to get your API key
Uploading an image
var imgCloud = ; imgCloud; imgCloud; /** * The response looks like * { * "url": "http://www.imgcloud.io/ic_12345/1234567_my_img.jpg", * "folder": "profile", * "tags": ["user", "profile"] * } */
Getting an embeddable image tag
var imgCloud = ; imgCloud; imgCloud; /** * This returns a string for a DOM element * <img src="http://www.imgcloud.io/ic_12345/w_150,h_150/1234567_my_img.jpg" width="150" height="150"> * /
License
MIT © [Liftoff LLC]