pkill

2.0.0 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.0522latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.0522
1.0.10
1.0.00

Package Sidebar

Install

npm i pkill

Weekly Downloads

522

Version

2.0.0

License

MIT

Last publish

Collaborators

  • timoxley