0.1.5 • Published 8 years ago

image-check v0.1.5

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

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