1.0.5 • Published 4 years ago

hostname v1.0.5

Weekly downloads
89
License
MIT
Repository
-
Last release
4 years ago

Hostname

Once upon a time, Node didn’t have a built-in module to get a computer’s hostname.

Version 1.0.0 and higher of this package is essentially a proxy to Node’s built-in module os.hostname().

If you are running a version of Node older than 0.3.3, please install the legacy version of this package using npm install hostname@0.0.3.

Installation

npm install hostname

Usage

var hostname = require('hostname');

// Output hostname to console
console.log(hostname());

Licence

MIT

1.0.5

4 years ago

1.0.4

5 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

7 years ago

0.0.3

14 years ago

0.0.2

14 years ago

0.0.1

14 years ago