zeanium-node
Version:
Zeanium for Node.js, simple http server and custome your business.
34 lines (30 loc) • 708 B
JavaScript
/**
* Created by yangyxu on 7/14/15.
*/
zn.define([
'node:fs',
'node:path',
'node:child_process'
], function (fs, path, child_process) {
return zn.Class({
properties: {
env: null,
argv: null
},
methods: {
init: function (env, argv){
this._env = env;
this._argv = argv;
this.exec();
},
exec: function (){
child_process.exec('zn', function (err,stdout,stderr){
if(err){
}else {
console.log(stdout);
}
});
}
}
});
});