closest-azure
v1.0.2
Published
find the closest azure region
Downloads
2
Readme
closest-azure
Finds the closest azure region :cloud: :earth_americas:
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