sindresorhus/ps-list

Add new properties for the path and arguments separately

Open

#7 ouverte le 11 mars 2017

Voir sur GitHub
 (8 commentaires) (0 réactions) (0 assignés)JavaScript (115 forks)user submission
:dollar: Funded on Issuehuntenhancementhelp wanted

Métriques du dépôt

Stars
 (287 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Currently there's process.cmd, but it includes both the path and arguments. Would be useful for https://github.com/sindresorhus/fkill-cli/issues/16 to have separate process.path and process.args properties.

Context:

I looked into this more, and I might have a solution to get the arguments without the full path. It seems ps -o pid -o comm returns the full path without arguments and ps -o pid -o command returns with arguments. So we could get both columns and just diff them to get the arguments. I think this should be added as a new property in ps-list. So we could add an args property with just the arguments and a path property with the full path to the binary without arguments, just for completeness.


Backers (Total: $40.00)

Submitted pull Requests


Become a backer now!

Or submit a pull request to get the deposits!

Tips

Guide contributeur