@anzerr/kill.tree

![GitHub Actions status | publish](https://github.com/anzerr/kill.tree/workflows/publish/badge.svg)

Usage no npm install needed!

<script type="module">
  import anzerrKillTree from 'https://cdn.skypack.dev/@anzerr/kill.tree';
</script>

README

Intro

GitHub Actions status | publish

Kill a tree of process for a given pid

Install

npm install --save git+https://git@github.com/anzerr/kill.tree.git
npm install --save @anzerr/kill.tree

Example

const kill = require('kill.tree');

kill(1, 'SIGKILL').then(({tree, pid, killed}) => {
    // failed to kill tree
}).catch(() => {
    // failed to kill tree
})