1.0.2 • Published 6 years ago

fqdn-promise v1.0.2

Weekly downloads
2
License
Unlicense
Repository
github
Last release
6 years ago

fqdn.promise

Get the fully qualified domain name via a Promise

This module is inspired by node-fqdn but returns a promise rather than using the dasync library.

Install

npm install fqdn-promise

Usage

fqdn = require('fqdn-promise');

// then from inside an async function
myfullhostname = await fqdn();

// or

fqdn()
.then (myfullhostname) => ...

Issues

Please report any issues or make any suggestions at the Github issues page.