1.0.0 • Published 7 months ago
fqdn-multi v1.0.0
fqdn-multi
Purpose
Simple utility to get the FQDN of a machine. Can be used synchronously or asynchronously
Why?: os.hostname() only returns the hostname rather than the FQDN
Usage
import fqdn from 'fqdn-multi';
const name = await fqdn();
console.log(name);
OS Support
Works on Windows, Linux and MacOS
Reference
This code is based on the original code.
Breaking
1.x
The module is ESM Module style and uses async
/ await
.