Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/justjavac/deno_is_running

Return true if the given PID is running.
https://github.com/justjavac/deno_is_running

deno deno-mod deno-module deno-modules deno-utils pid running

Last synced: 5 days ago
JSON representation

Return true if the given PID is running.

Awesome Lists containing this project

README

        

# deno_is_running

[![tag](https://img.shields.io/github/release/justjavac/deno_is_running)](https://github.com/justjavac/deno_is_running/releases)
[![Build Status](https://github.com/justjavac/deno_is_running/workflows/ci/badge.svg?branch=master)](https://github.com/justjavac/deno_is_running/actions)
[![license](https://img.shields.io/github/license/justjavac/deno_is_running)](https://github.com/justjavac/deno_is_running/blob/master/LICENSE)

Return `true` if the given PID is running.

## Usage

```ts
import isRunning from "https://deno.land/x/is_running/mod.ts";

isRunning(Deno.pid); // true
isRunning(13232);
```

## Example

```bash
deno run --allow-run --unstable https://deno.land/x/is_running/example.ts
```

## License

[deno_is_running](https://github.com/justjavac/deno_is_running) is released under the MIT License. See the bundled [LICENSE](./LICENSE) file for details.