@flemist/find-process (npm): Cross-platform find or wait processes by predicate func. With minimum code using ps (for Unix) and wmic (for Windows)
Keywords: crossplatform|cross-platform|ps|wmic|processlist|process-list