process module for Deno
Features:
- Cross platform support
- kill
- get
- getAll
- getTree
Usage
all methods require --allow-run
flags
import {
get,
getAll,
getTree,
kill,
} from 'https://deno.land/x@v0.2.0/process/mod.ts'
console.log(await get(1)) // get process info with pid
console.log(await getAll()) // get all process list
console.log(await getTree()) // get process tree
await kill(1024) // kill process by pid
await kill('deno') // kill process by name
License
The MIT License