osinfo

0.6.2 • Public • Published

Information about OS

Installation

npm install -g osinfo

Usage

Help

osinfo --help

Get Os Info in xml format

osinfo -f yaml

Result structure

platform:   # platform info
  arch:         # architecture
  type:         # platform type
  release:      # release version
  name:         # platform name
  endianness:   # OS endianness

disks:      # array of disks
  - disk:       # name/label
    total:      # total size
    free:       # free space
    path:       # drive path

cpus:       # cpus info
  list:         # array of cpus
    - model:        # model
      speed:        # speed
      times:        # times
  loadavg:  # cpus load avg (not for Windows platforms)

memory:     # RAM info
  free:         # free
  total:        # total

environment:    # environment info
  vars:         # Environment variables
  homedir:      # home directory
  hostname:     # hostname

networks:   # network interfaces
  name:         # array of available IPv6 and IPv4 network interfaces for network name
    - address:      # IP address
      netmask:      # network mask
      family:       # IPv6 or IPv4
      mac:          # network interface mac address
      scopeid:      # scopied
      internal:     # is internal true/false

License

The MIT License Copyright (c) 2017-present Ivan Zakharchenko

Package Sidebar

Install

npm i osinfo

Weekly Downloads

1

Version

0.6.2

License

MIT

Last publish

Collaborators

  • 3axap4ehko