fqdn-multi

1.0.0 • 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

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.

Dependencies (1)

Dev Dependencies (2)

Package Sidebar

Install

npm i fqdn-multi

Weekly Downloads

286

Version

1.0.0

License

MIT

Unpacked Size

4.33 kB

Total Files

7

Last publish

Collaborators

  • stheine