closest-azure
Finds the closest azure region
This module relies on CNAME conventions
✨
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