/srv-lookup

Primary LanguageJavaScriptMIT LicenseMIT

srv-lookup

npm

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

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

📝 License

Copyright © 2020 Emil Rowland.
This project is MIT licensed.