https://github.com/barcellos-pedro/nodejs-os-data
Get operating system-related data
https://github.com/barcellos-pedro/nodejs-os-data
learning nodejs npm os vanilla
Last synced: about 1 month ago
JSON representation
Get operating system-related data
- Host: GitHub
- URL: https://github.com/barcellos-pedro/nodejs-os-data
- Owner: barcellos-pedro
- License: mit
- Created: 2023-05-26T00:30:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-01T01:59:46.000Z (over 2 years ago)
- Last Synced: 2025-07-05T11:55:34.381Z (3 months ago)
- Topics: learning, nodejs, npm, os, vanilla
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/nodejs-os-data
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
### Files
# How to use
### Code
```js
getData().catch(console.error);
```### NPX
```bash
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
- [Process (argv)](https://nodejs.org/docs/latest/api/process.html#processargv)
- [OS](https://nodejs.org/api/os.html#os)
- [Test Runner](https://nodejs.org/docs/latest-v18.x/api/test.html#test-runner)