Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/axetroy/deno_process
- Owner: axetroy
- License: mit
- Created: 2019-06-25T15:15:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-05T14:33:10.000Z (over 2 years ago)
- Last Synced: 2024-04-14T07:49:39.979Z (10 months ago)
- Topics: deno
- Language: TypeScript
- Homepage:
- Size: 42 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[![Badge License]][License]
[![Badge Status]][Actions]
# Deno Process
*A deno module for process management.*
## Features
Cross Platform Support
GetGetTree
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