mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
22 lines
479 B
JavaScript
22 lines
479 B
JavaScript
var SYS = require("lib/system");
|
|
var HTTP = require("lib/http");
|
|
//var Toolkit = require("lib/toolkit");
|
|
|
|
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("lib/http: Something wrong");
|
|
}
|
|
|
|
//Toolkit.create();
|
|
}
|
|
|
|
exports.main = main;
|