fqdn-multi
v0.1.2
Published
Get fqdn of machine. Multiplatform (Win & UX).
Downloads
2,119
Readme
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
const fqdn = require('fqdn-multi');
// Async
fqdn((err, name) => {
if(err) {
throw err;
}
console.log(name);
});
/* OR */
// Sync
const name = fqdn();
OS Support
Works on Windows, Linux and MacOS
Reference
This code is based on the original code.