# promon

> Collector for pid stats

Latest version **0.1.0** (published 2017-11-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install promon
pnpm add promon
yarn add promon
bun add promon
```

## 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.1.0 |
| Published | 2017-11-02 |
| First published | 2017-11-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Gavin D'mello |
| Maintainers | bat_coder |

## Links

- npm: https://www.npmjs.com/package/promon
- Repository: https://github.com/GavinDmello/pid-stats
- Homepage: https://github.com/GavinDmello/pid-stats#readme
- Issues: https://github.com/GavinDmello/pid-stats/issues
- npm.io page: https://npm.io/package/promon

## Recent versions

- 0.1.0 (latest) — 2017-11-02

## README

# Promon
Collects information from /proc/pid/stat for linux/unix systems

```
npm install promon
```


## API
- getStats(callback)	// returns all information associated to pid
- getCPUPercentage() // returns CPU percentage used by the application
- getMemory() // returns rss memory of the application in MB

## Example
```js
	var Stats = require('promon')
	var s = new Stats()
	s.getStats(function (err, data) {
		console.log(err, data)
	})
	var cpuPercent = s.getCPUPercentage()
	var memory = s.getMemory()

```

## License
MIT

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