1.0.1 ā€¢ Published 4 years ago

srv-lookup v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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.