lshw

1.6.1 • Public • Published

lshw - List hardware

💻 Return the hardware configuration of the machine, inspired by lshw.

I'm aspiring to make open-source my full-time work. If you like the work that I do, please consider supporting me.

Coffee PayPal

Install

npm i -g lshw

Usage

This project lacks many of the features from the original lshw tool. Additional issues arise when the Node.js os library doesn't provide low-level support for things like PCI devices or motherboard bus information.

CLI

$ lshw
 
# Usage: lshw [ options ] [ --version | --html | --json] 
#                 lshw 
# Options: 
#         -V, --version           Output lshw version 
#         -html, --html           Output hw configuration as HTML 
#         -json, --json           Output hw configuration as JSON 

Yields:

MY-PC
          Width: x64
        *-core
          Description: Motherboard
            *-memory
                Description: System memory
                Size: 8.00 GB
            *-cpu
                Product: Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
                Vendor: Intel(R)
                Width: x64
        *-network
      Description: Network interface
          Logical Name: lo0
          Serial: 00:00:00:00:00:00
          Configuration: ip=127.0.0.1
...

Contribute

Don't be scared raise an issue or a pull request! Any contributions, no matter how big or small will land your picture here.

Adam Zerella

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i lshw

      Weekly Downloads

      51

      Version

      1.6.1

      License

      MIT

      Unpacked Size

      12.2 kB

      Total Files

      10

      Last publish

      Collaborators

      • azerella