Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidszell/lizard-utils
Utilities to monitor operating system related data.
https://github.com/davidszell/lizard-utils
monitoring nodejs operating-system os sysinfo system-information utility
Last synced: 21 days ago
JSON representation
Utilities to monitor operating system related data.
- Host: GitHub
- URL: https://github.com/davidszell/lizard-utils
- Owner: davidszell
- License: mit
- Created: 2021-04-04T13:46:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-04-14T15:26:40.000Z (over 3 years ago)
- Last Synced: 2024-04-28T22:03:48.009Z (6 months ago)
- Topics: monitoring, nodejs, operating-system, os, sysinfo, system-information, utility
- Language: JavaScript
- Homepage:
- Size: 207 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lizard Utils
[![Version](https://img.shields.io/github/package-json/v/davidszell/lizard-utils)](https://github.com/davidszell/lizard-utils/releases/latest)
[![License](https://img.shields.io/github/license/davidszell/lizard-utils)](https://github.com/davidszell/lizard-utils/blob/main/LICENSE)
[![Codacy Badge](https://img.shields.io/codacy/grade/299659df6a4c451a9160b02aa484d00f)](https://www.codacy.com/gh/davidszell/lizard-utils/dashboard?utm_source=github.com&utm_medium=referral&utm_content=davidszell/lizard-utils&utm_campaign=Badge_Grade)
[![Codacy Coverage](https://img.shields.io/codacy/coverage/299659df6a4c451a9160b02aa484d00f)](https://www.codacy.com/gh/davidszell/lizard-utils/dashboard?utm_source=github.com&utm_medium=referral&utm_content=davidszell/lizard-utils&utm_campaign=Badge_Grade)
[![Build Status](https://img.shields.io/travis/com/davidszell/lizard-utils)](https://travis-ci.com/github/davidszell/lizard-utils)Utilities to monitor operating system related data.
## Installation
```sh
npm install lizard-utils --save
```## Example
```js
const lizardUtils = require('lizardUtils');const coreCount = lizardUtils.cpu.coreCount(); // 12
lizardUtils.cpu.avgLoads(1000).then((data) => {
console.log(data.avgLoadPercent); // 25.8
});lizardUtils.cpu.subscribe(1000, (data) => {
console.log(data.avgLoadPercent); // 25.8
});
```## See also
* [API documentation](docs/API.md)