0.1.2 • Published 4 years ago

fqdn-multi v0.1.2

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

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.

0.1.2

4 years ago

0.1.1

7 years ago

0.1.0

7 years ago