1.0.2 • Published 3 years ago

check-os-spec v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Introduce

npm install check-os-spec
const checkOsSpec = require('check-os-spec');

Set Router

You can set router to search about OS spec by following command.

checkOsSpec.setRouter();

By inputting following URL, you can search your PC's specs as follows.

CLI command

To see spacs in CLI, you should execute function as below.

checkOsSpec.showSpec();

By inputting commands as follows on CLI, you can see specs as well.

  • node yourapp.js -arch ----> shows architecture
  • node yourapp.js -cpu ----> shows cpus
  • node yourapp.js -ram----> shows ram
  • node yourapp.js -hdd----> shows disk space
  • node yourapp.js -hostname ----> shows hostname
  • node yourapp.js -ip ----> shows ip address

Fortune telling

You can do fortune telling as bonus!! Execute below function first.

checkOsSpec.fortuneTeller();

To have fortune told, type "love" or "work" or "money" as an argument on CLI. Results related with the word will be appeared on console of CLI.

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago