1.0.1 ā¢ Published 4 years ago
srv-lookup v1.0.1
srv-lookup
Install
npm install srv-lookup
Usage
Get server url from srv record, that can later be used as the domain name in for example an axios call.
const srvLookup = require('srv-lookup');
const serverUrl = await srvLookup('myserver.mydomain'); //this will return something like serverurl:serverport
Author
š¤ Emil Rowland
- Github: @emilrowland
š¤ Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page.
š License
Copyright Ā© 2020 Emil Rowland. This project is MIT licensed.