Skip to main content

Build Status

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/process@v0.3.0/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