lib/ms-task.js
function nameOf( pid, callback ){
    if( isNumber( pid )){
        procStat( pid, function( err, proc ){
            callback( err, proc.object[ 0 ].name );
        })
    } else callback( new Error( 'A non-numeric PID was supplied' ), null )
}
function nameOf( pid, callback ){
    if( isNumber( pid )){
        procStat( pid, function( err, proc ){
            callback( err, proc.object[ 0 ].name );
        })
    } else callback( new Error( 'A non-numeric PID was supplied' ), null )
}
function nameOf ( pid , callback ) { if ( isNumber ( pid ) ) { procStat ( pid , function ( err , proc ) { callback ( err , proc . object [ 0 ] . name ) ; } ) } else callback ( new Error ( 'A non-numeric PID was supplied' ) , null ) }
Search for the process name that corresponds with the supplied PID
Search for the process name that corresponds with the supplied PID