https://github.com/azerella/lshw
💻 Return the hardware configuration of the machine
https://github.com/azerella/lshw
hardware hardware-configuration lshw machine nodejs npm-package
Last synced: about 1 month ago
JSON representation
💻 Return the hardware configuration of the machine
- Host: GitHub
- URL: https://github.com/azerella/lshw
- Owner: azerella
- License: mit
- Created: 2018-10-30T09:41:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-27T07:24:47.000Z (over 7 years ago)
- Last Synced: 2025-07-22T15:44:59.757Z (11 months ago)
- Topics: hardware, hardware-configuration, lshw, machine, nodejs, npm-package
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/lshw
- Size: 27.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# lshw - List hardware
> 💻 Return the hardware configuration of the machine, inspired by [lshw](https://www.unix.com/man-page/linux/1/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][badge_coffee_donate]](https://www.buymeacoffee.com/adamzerella)
[![PayPal][badge_paypal_donate]](https://paypal.me/adamzerella)
## Install
```bash
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](https://nodejs.org/api/os.html) library doesn't provide low-level support for things like PCI devices or motherboard bus information.
## CLI
```bash
$ 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:
```bash
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.
[badge_coffee_donate]: https://adamzerella.com/badges/coffee.svg
[badge_patreon_donate]: https://adamzerella.com/badges/patreon.svg
[badge_paypal_donate]: https://adamzerella.com/badges/paypal.svg