Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/axetroy/deno_process

process module for Deno
https://github.com/axetroy/deno_process

deno

Last synced: 4 months ago
JSON representation

process module for Deno

Awesome Lists containing this project

README

        


[![Badge License]][License]   
[![Badge Status]][Actions]




# Deno Process

*A deno module for process management.*




## Features

  Cross Platform Support    
  Get  

  GetTree    
  GetAll    
  Kill  




## Usage

All methods require the  `--allow-run`  flags.

```TypeScript
import * as Process from 'https://deno.land/x/[email protected]/mod.ts'
```


### Get

*Get a process info with it's id.*

```TypeScript
const processId = 1;
const info = await Process.get(processId);
```


### Get All

*Return all processes.*

```TypeScript
const processes = await Process.getAll();
```


### Get Tree

*Return the process tree.*

```TypeScript
const tree = await Process.getTree();
```


### Kill

*Kill a process by Id or name.*

```TypeScript
const processName = 'deno';
await Process.kill(processName);
```

```TypeScript
const processId = 1024;
await Process.kill(processId);
```


[Actions]: https://github.com/axetroy/deno_process/actions

[License]: LICENSE

[Badge License]: https://img.shields.io/badge/License-MIT-ac8b11.svg?style=for-the-badge&labelColor=yellow
[Badge Status]: https://img.shields.io/github/workflow/status/axetroy/deno_process/test?style=for-the-badge&labelColor=7F2B7B&color=5b1f59