pgrep api for node.js