open-index/open-npm huggingface dataset:
npm package: @oof2510/osinfo
Description: A module to get OS/PC info
Author: OOF2510
Latest version: 1.0.3

# osinfo

An NPM module to get OS/PC info

# Installation

### Yarn

```bash
yarn add @oof2510/osinfo
```

### NPM

```bash
npm i @oof2510/osinfo --save
```

# Example code to log the CPU temperature

```js
const osinfo = require("@oof2510/osinfo");

console.log(osinfo.system.cpuTemp);
```

# Docs

### Functions

`formatBytes(bytes, decimals)` - Formats bytes to the appropriate unit. Decimals defaults to 2.

`formatMilliseconds(milliseconds)` - Formats milliseconds to the appropriate unit.

`isLinux()` - Returns true if os is linux, false otherwise.

### Properties

`system.uptime` - System uptime

`system.memUsage` - System memory usage

`system.cpuTemp` - CPU temperature in celcius

`system.totalMem` - Total system memory in bytes

`system.freeMem` - Free system memory in bytes

`process.uptime` - Uptime of the nodejs process

`process.memUsage` - Amount of memory that the nodejs process is using

`os.platform` - Exactly the same as nodejs's `os.platform()`

`os.linuxDistro` - The name of the linux distro; if on linux

`os.arch` - Exactly the same as nodejs's `os.arch()`

`os.release` - Exactly the same as nodejs's `os.release()`

`os.version` - Exactly the same as nodejs's `os.version()`

`nodejsVersion` - The version of nodejs that is installed
npm package: @oof2510/ping
Description: A module to get the ping of a domain
Author: OOF2510
Latest version: 3.0.1

# Ping

An NPM module to ping a domain

# Installation

### Yarn

```bash
yarn add @oof2510/ping
```

### NPM

```bash
npm i @oof2510/ping
```

# Example code

```js
const { ping } = require("@oof2510/ping");

async function p() {
  let googlePing = await ping("google.com");
  console.log(googlePing);
}
p();
```
# Cli usage
```
simple-ping [options] [command]

  Commands:
    help     Display help
    version  Display version

  Options:
    -H, --help     Output usage information
    -h, --host     host to ping
    -v, --version  Output the version number
```