image-exists
v1.1.0
Published
Check if an image exists
Downloads
4,375
Readme
image-exists
Check if an image exists
Install
npm install image-exists
Usage
var imageExists = require('image-exists');
var src = "http://example.com/image.png";
imageExists(src, function(exists) {
if (exists) {
console.log("it's alive!");
}
else {
console.log("oh well");
}
});