neekey / ps

A Node.js module for looking up running processes
MIT License
128 stars 41 forks source link

Promises support #77

Open mykola-mokhnach opened 6 years ago

mykola-mokhnach commented 6 years ago

Please add a possibility for public functions to return promises if callback function is not provided. For example:

ps.lookup({ pid: 12345 }, function(err, resultList ) {}) =======> ps.lookup({ pid: 12345 }) -> Promise<resultList>
hanabi1224 commented 5 years ago

@neekey @mykola-mokhnach I just sent to PR for this https://github.com/neekey/ps/pull/78