lib/main.js
function(psRec,sProcId){
            if(!sProcId){throw new Error("No Proc Id found in data");}
            var iFind,sArgs
            iFind=psRec.CommandLine.indexOf(psRec.Name);
            sArgs = psRec.CommandLine.substring(iFind+psRec.Name.length+1);
            psRecs[sProcId]={
                pid: psRec.ProcessId
               ,ppid: psRec.ParentProcessId
               ,commandPath: psRec.ExecutablePath
               ,command: psRec.Name
               ,args: sArgs
            }
        }
function(psRec,sProcId){
            if(!sProcId){throw new Error("No Proc Id found in data");}
            var iFind,sArgs
            iFind=psRec.CommandLine.indexOf(psRec.Name);
            sArgs = psRec.CommandLine.substring(iFind+psRec.Name.length+1);
            psRecs[sProcId]={
                pid: psRec.ProcessId
               ,ppid: psRec.ParentProcessId
               ,commandPath: psRec.ExecutablePath
               ,command: psRec.Name
               ,args: sArgs
            }
        }
function ( psRec , sProcId ) { if ( ! sProcId ) { throw new Error ( "No Proc Id found in data" ) ; } var iFind , sArgs iFind = psRec . CommandLine . indexOf ( psRec . Name ) ; sArgs = psRec . CommandLine . substring ( iFind + psRec . Name . length + 1 ) ; psRecs [ sProcId ] = { pid : psRec . ProcessId , ppid : psRec . ParentProcessId , commandPath : psRec . ExecutablePath , command : psRec . Name , args : sArgs } }
Now parse the WMIC return
Now parse the WMIC return