Skip to content

idw111/image-check

Repository files navigation

image-check NPM version Dependency Status

Check if image exists and retrieve its size (based on Promise)

Installation

$ npm install --save image-check

Usage

var checkImage = require('image-check');
checkImage('some image url to test').then((data) => {
    // access image attributes
    const width = data.width;
    const height = data.height;
    const url = data.url;
}).catch((err) => {
    // handle error
});

License

MIT © Dongwon Lim

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published