Socket
Socket
Sign inDemoInstall

closest-azure

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    closest-azure

find the closest azure region


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

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

Last updated on 02 Feb 2018

Did you know?

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc