Comparing version 0.0.2 to 0.0.3
@@ -11,3 +11,8 @@ var shell = require("shelljs"); | ||
return shell.exec("hostname -f", { silent: true }, cb); | ||
if(cb){ | ||
shell.exec("hostname -f", { silent: true }, cb) | ||
} | ||
else { | ||
return shell.exec("hostname -f", { silent: true }).output.trim(); | ||
} | ||
}; |
{ | ||
"name": "fqdn", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "utility to get fqdn of machine", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -16,3 +16,3 @@ var fqdn = require("../index"), | ||
it('should return the fqdn', function(done){ | ||
should.exist(fqdn().output); | ||
should.exist(fqdn()); | ||
done(); | ||
@@ -19,0 +19,0 @@ }); |
3753
58