Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.
/ fqdn-promise Public archive

Get the fully qualified domain name of the machine using native promises

License

Notifications You must be signed in to change notification settings

CliffS/fqdn-promise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fqdn.promise

Get the fully qualified domain name via a Promise

This module is inspired by node-fqdn but returns a promise rather than using the dasync library.

Install

npm install fqdn-promise

Usage

fqdn = require('fqdn-promise');

// then from inside an async function
myfullhostname = await fqdn();

// or

fqdn()
.then (myfullhostname) => ...

Issues

Please report any issues or make any suggestions at the Github issues page.

About

Get the fully qualified domain name of the machine using native promises

Resources

License

Stars

Watchers

Forks

Packages

No packages published