Hostname

var sys = frequire('Sys::Hostname')
var host = sys.hostname

Or:

var host = `hostname`.chomp

Last updated