is-image-url
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -6,3 +6,3 @@ var request = require('sync-request'); | ||
module.exports = function (url) { | ||
module.exports = function (url, accurate) { | ||
if (!url) return false; | ||
@@ -16,2 +16,3 @@ if (!isUrl(url)) return false; | ||
try { | ||
if (!accurate) return false; | ||
var res = request('GET', url); | ||
@@ -18,0 +19,0 @@ if (!res) return false; |
{ | ||
"name": "is-image-url", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Check if a url is an image", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4441
24