UNPKG

vox-core

Version:

Runtime de aplicaciones multiplataforma

26 lines (19 loc) 519 B
var Path= require("path") var os= require("os"); var windows=os.platform()=="win32"; var cp=require("child_process"); var path= Path.normalize(__dirname +"/../../../bin/ClrForAll.exe"); var LprIpc= core.org.voxsoftware.Lpr.IPC var IPC= module.exports= function(){ LprIpc.call(this) } IPC.prototype = Object.create(LprIpc.prototype); IPC.prototype.constructor= IPC IPC.prototype.spawn= function(){ if(!windows){ return cp.spawn("mono", [path]); } else{ return cp.spawn(path); } }