0.0.0 • Published 3 years ago

rice v0.0.0

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

🍙 A customizable system information script.

Installation

(requires Node v8.5.0+)

npm

$ npm i -g rice
$ rice

yarn

$ yarn global add rice
$ rice

With npx

(requires npm v5.2+)

$ npx rice

Source

Clone this repository and install its dependencies:

$ npm install
$ npm run build
$ node dist/index.js

Usage

  Customizable system information script

  Usage:
    $ rice [options]

  Options:

    -h, --help              Print this text
    -v, --version           Output the version number
    -d, --default-config    Use the default config file (all options on)
    -c, --clean             Print everything cleanly (turns off Node and Hostname)
    --no-align              Turn off alignment of info

  ASCII:
    --no-ascii              Turn off ascii art
    --distro <distro>       Specify which ascii logo to print
    --no-balance            Turn off centering of ascii art

Using the config.json

A file called config.json is created which will look something like this:

{
  "options": {
    "CPU": {
      "speed": true,
      "cores": true
    },
    "OS": {
      "release": true,
      "version": true,
      "arch": true
    },
    "Kernel": {
      "version": true
    },
    "Shell": {
      "path": true,
      "version": true
    },
    "Uptime": {
      "short": true
    },
    "Memory": {
      "percentage": true
    },
    "Disk": {
      "percentage": true
    }
  },
  "bar": "--------------------",
  "art": true,
  "align": true,
  "balance": true,
  "order": [
    "Host",
    "bar",
    "OS",
    "Kernel",
    "WM",
    "DE",
    "Terminal",
    "Shell",
    "Node",
    "Editor",
    "bar",
    "Uptime",
    "CPU",
    "GPU",
    "Resolution",
    "Memory",
    "Disk",
    "Battery",
    "Blocks"
  ]
}
  • You can edit config.json by running the command riceconfig.
  • To reset config.json to its defaults, run ricereset.

Caveats

I've only tested this on macOS. It may work on some Linux distros. It will probably not work in Windows.

Prior Art

Rice has used ASCII files and taken much inspiration from the following projects:

License

MIT © Jorge Gonzalez

0.0.0

3 years ago

0.3.0

3 years ago

0.2.15

3 years ago

0.2.14

3 years ago

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago