据我所知,还没有一个模块可以做这个跨平台。您可以使用子流程API来启动提供所需数据的工具。对于Windows,只需启动内置任务列表过程即可。
var exec = require('child_process').exec;exec('tasklist', function(err, stdout, stderr) { // stdout is a string containing the output of the command. // parse it and look for the apache and mysql processes.});


