Files
deployd/lib/util/open.js

15 lines
289 B
JavaScript

var sh = require('shelljs')
, debug = require('debug')('open');
module.exports = function(url) {
var command = 'open';
url = url || '';
if (process.platform === 'win32') {
command = 'start';
}
command += ' ' + url;
debug(command);
sh.exec(command, {async: true});
}