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

server-reach-by-image

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

server-reach-by-image

Check can you reach a specific server (address or ip) by using image hosted on that server.

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

Server Reach By Image

Open Source Love license package version

Check can you reach a specific server (address or ip) by using image hosted on that server.

Why?

Cause sometimes you need to see can you reach some server from Javascript, and things can hurt. How? Well imagine asking for server with http only from https location? Or imagine needing to check for IP but certificate on that page is only valid for specific domain name. Getting some image will work even then, and give you that precious information is the location reachable or not. For example: checking for internal IP to determine are you on a vpn connection.

Install

npm install server-reach-by-image

Running

import ServerReachByImage from 'server-reach-by-image';

const options = {};
const serverByImage = new ServerReachByImage(options);
serverByImage.load().then(success).catch(fail);

Fail method will receive error message as first parameter.

Available options:

  • url (address to hit, without following / preferred)
  • imgUrl (image to hit on the url, starting with /)
  • timeout (integer, time to wait for load before declaring a fail attempt, default 3000ms)

License

MIT.

Keywords

FAQs

Package last updated on 28 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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