@senka/systeminfo
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

SenkaSystemInfo

Usage

import { getSystemInfo, logSystemLogoAndInfo } from "@senka/systeminfo";
/**
 * Commonjs
 * const { getSystemInfo, logSystemLogoAndInfo } = require("@senka/systeminfo")
 */
await getSystemInfo().then((data) => console.log(data));
/* Example:
 {
    os: data.distro,
    version: data.release,
    arch: data.arch,
    platform: data.platform,
    totalram: `${Math.round(totalmem() / 1024 / 1024 / 1024)}GB`,
    freeram: `${Math.round(freemem() / 1024 / 1024 / 1024)}GB`,
}
 */
logSystemLogoAndInfo();
/* Example
   ⠀ ⣤⣴⣾⣿⣿⣿⣿⣿⣶⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⡄
    ⢀⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⢰⣦⣄⣀⣀⣠⣴⣾⣿⠃      OS: Microsoft Windows 11 Pro
    ⢸⣿⣿⣿⣿⣿⣿⣿⣿⡏⠀⠀⣼⣿⣿⣿⣿⣿⣿⣿⣿⠀      Version: 10.0.22621
⠀   ⣼⣿⡿⠿⠛⠻⠿⣿⣿⡇⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⡿⠀      Arch: x64
⠀    ⠉⠀⠀⠀ ⠀⠀⠀⠈⠁⠀⢰⣿⣿⣿⣿⣿⣿⣿⣿⠇       Platform: Windows
⠀  ⣠⣴⣶⣿⣿⣿⣷⣶⣤⠀⠀⠀⠈⠉⠛⠛⠛⠉⠉⠀⠀⠀       Computer: Scripter
⠀ ⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⣶⣦⣄⣀⣀⣀⣤⣤⣶⠀⠀⠀⠀     Used Ram:: 54%
  ⣾⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⢀⣿⣿⣿⣿⣿⣿⣿⣿⡟⠀⠀
  ⣿⣿⣿⣿⣿⣿⣿⣿⣿⠁⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀
⢠⣿⡿⠿⠛⠉⠉⠉⠛⠿⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⠁⠀⠀
⠘⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⢿⣿⣿⣿⣿⣿⠿⠛⠀⠀⠀ 
*/

Package Sidebar

Install

npm i @senka/systeminfo

Weekly Downloads

4

Version

1.1.2

License

Apache-2.0

Unpacked Size

11.3 kB

Total Files

5

Last publish

Collaborators

  • senesatka