barcellos-pedro / nodejs-os-data

Get operating system-related data

Home Page:https://www.npmjs.com/package/nodejs-os-data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nodejs OS Data: A simple package to view OS data

🌱 I did this project to learn about how to publish a NPM package and work with command-line arguments

💻 Get operating system-related data such as CPU Architecture, CPU Model, Total memory, and more!

🍃 Lightweight without dependencies

Preview

Console

image of os data from terminal

Files

image of different files containing OS data

How to use

Code

getData().catch(console.error);

NPX

npx nodejs-os-data [filename] [format]

Available Options:

Command Description Defaults
--filename Filename to use info.txt
--format File extension .txt

References

Node.js API docs used as knowledgebase

About

Get operating system-related data

https://www.npmjs.com/package/nodejs-os-data

License:MIT License


Languages

Language:JavaScript 100.0%