Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-image-url

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-image-url - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

3

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc