Skip to content

timoxley/pkill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pkill

Convenience wrapper around pkill(1).

Build Status

Usage

Sync

  • Will throw if there's a problem.
  • Does not throw for no matching processes.
// kills all processes named 'node'
pkill('node')

Match on full exec pattern: pkill.full

// kills all processes matching 'node debug'
pkill.full('node debug')

Async

  • Does not err for no matching processes.
pkill('node', function (err, validPid) {
  err      // if err.
  validPid // if matched any processes
})

Compatibility

  • Not work on windows.

License

MIT

About

Convenience wrapper around `pkill(1)`

Resources

License

Stars

Watchers

Forks

Packages

No packages published