mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 15:04:58 +00:00
18 lines
403 B
JavaScript
18 lines
403 B
JavaScript
var SYS = require("lib/system");
|
|
var HTTP = require("lib/http");
|
|
|
|
function main(args) {
|
|
console.log("Hello world");
|
|
if (typeof WScript !== "undefined") {
|
|
console.log("Process version:", SYS.getProcessVersion());
|
|
}
|
|
|
|
try {
|
|
var web = HTTP.create();
|
|
console.log(web.userAgent);
|
|
} catch (e) {
|
|
console.error("Something wrong");
|
|
}
|
|
}
|
|
|
|
exports.main = main; |