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.

    Keywords

    Install

    npm i fqdn-multi

    DownloadsWeekly Downloads

    426

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    6.34 kB

    Total Files

    8

    Last publish

    Collaborators

    • stheine