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

Readme

Keywords

Package Sidebar

Install

npm i image-exists

Weekly Downloads

986

Version

1.1.0

License

MIT

Last publish

Collaborators

  • kylemathews