Skip to content

barcellos-pedro/nodejs-os-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published