getworkingimageurl
Helper module to check for broken image Urls
Why
When all else fails and the Url for the image you want is broken, you'd better have a fallback to avoid broken images. This module helps you on that.
Install
$ npm install --save getworkingimageurl
Usage
const getworkingimageurl = ; // Or if you want to be fancy
API
getWorkingImageUrl(url, callback)
url
Type: string
Any valid Url
callback
Type: boolean
Default: true
Callback to be used if Url has a valid (not broken) image
License
MIT © “Cezar Augusto“