image-exists

1.1.0 • Public • Published

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");
  }
});

/image-exists/

    Package Sidebar

    Install

    npm i image-exists

    Weekly Downloads

    956

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • kylemathews