Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

process-tree

like ps-tree, but cross-platform, and providing sub-children

Get a tree of processes starting from the children of a given PID.

require("process-tree")(pid, function(err, children){
	if(err){
		console.error(err);
	}else{
		console.log(JSON.stringify(children, null, 4));
		console.assert(children[0].ppid === pid);
		console.log(children[0].children[0].pid);
		console.log(children[0].name); // "Name" from wmic, "comm" from ps
	}
});

About

Node library to find all the child processes

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /