# @p0x6/process_watcher

> Node.js addon for Windows OS to watch for processes to open

Latest version **0.0.4** (published 2020-04-18) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install @p0x6/process_watcher
pnpm add @p0x6/process_watcher
yarn add @p0x6/process_watcher
bun add @p0x6/process_watcher
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2020-04-18 |
| First published | 2020-04-16 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 14.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 1 |
| Author | p0x6 |
| Maintainers | p0x6 |
| Keywords | c++, addon, process, wmi, process, watcher |

## Links

- npm: https://www.npmjs.com/package/@p0x6/process_watcher
- Repository: https://github.com/p0x6/process_watcher
- Homepage: https://github.com/p0x6/process_watcher#readme
- Issues: https://github.com/p0x6/process_watcher/issues
- npm.io page: https://npm.io/package/@p0x6/process_watcher

## Dependencies (1)

- [nan](https://npm.io/package/nan.md) ^2.14.0

## Recent versions

- 0.0.4 (latest) — 2020-04-18
- 0.0.3 — 2020-04-18
- 0.0.2 — 2020-04-17
- 0.0.1 — 2020-04-16

## README

# process_watcher

NOTE: WINDOWS ONLY. TESTED WITH NODE 12.18.X WITH ELECTRON 7+

process_watcher is a nodejs c++ addon for watching for process starting by using the WMI.

## Installation

```
$ npm install --save @p0x6/process_watcher
```

## Usage

If the process is already running when listener is added, it will trigger the callback.

```javascript
const process_watcher = require('@p0x6/process_watcher');
const obj = new process_watcher.ProcessListener();

const listener = (process) => {
    console.log(process + ' opened.');
    obj.removeListener([process]);
}

obj.addListener(['notepad.exe', 'calculator.exe'],  listener);
```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
[MIT](https://github.com/p0x6/process_watcher/blob/master/LICENSE)

---
_Source: https://npm.io/package/@p0x6/process_watcher · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
