Socket
Socket
Sign inDemoInstall

closest-azure

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

closest-azure

find the closest azure region


Version published
Maintainers
1
Created
Source

closest-azure

npm badge

Finds the closest azure region :cloud: :earth_americas:

readme logo

This module relies on CNAME conventions :sparkles:

Determine the closest Azure region, by issuing dns queries. Install with npm install closest-azure.

const closestAzure = require('closest-azure')

closestAzure().then((regionNameStr) => {
    console.log(`you are closest to ${regionNameStr}`)
})

As you can see, closest-azure is a function, that returns a Promise. That promise resolves to a string - the name of an azure region.

License

MIT

Keywords

FAQs

Package last updated on 02 Feb 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