fqdn-multi

0.1.2 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    501
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    501
  • 0.1.1
    2
  • 0.1.0
    0

Package Sidebar

Install

npm i fqdn-multi

Weekly Downloads

405

Version

0.1.2

License

MIT

Unpacked Size

6.34 kB

Total Files

8

Last publish

Collaborators

  • stheine