Yayfetch is a tool similar to screenfetch, it just displays info about your computer in a prettified format - except you can use it on a non-linux machine via npx, thanks to the wonders of node
Note: It is NOT reccomended to install the package globally, because it is subject to often changes
npx yayfetch@latest - returns info about your system(@latest should be added, cause sometimes npx can display a cached version)
-p or --pick - first asks you what information you want to display, then displays it
-c <color> or --color <color> - allows to specify in which color the data will be shown in predefined colors. Cannot be used with --rgb flag. Available predefined colors:
pink(default), orange, green, white, black, red, blue, yellow, violet, rainbow
--rgb r,g,b - specify RGB values in which data will be shown. Cannot be used with -c(--color) flag. Example npx yayfetch --rgb 125,25,78
--no-logo - prints data without ASCII art
--custom-lines {[key]: value, [key2]: value2, ...} - object with {[key]: value} string pairs separated by spaces ex.
'{"Funny:": "joke", "exampleline:": "examplevalue"}'. This is being parsed using JSON.parse, so if you encounter any problem, make sure that string you provided can be parsed by it.
--no-colored-boxes - hides the colored boxes underneath the information.
-h or --help - shows available flags.
--config <path_to_file> - specify a file path to a custom config. See here
More features to come!
You can specify options through a file and use them by using --config <path_to_file>. Config file should contain a JSON object with keys representing flags.
Note that every flag with a prefix of --no- just negates the flag that is on by default. For example CLI flag --no-colored-boxes negates colored-boxes flag, which is true by default. This is important for creating a config, because if you want to invoke --no-colored-boxes through config, you would provide a "colored-boxes": false in JSON object.
Example config:
{
"color": "blue",
"colored-boxes": false,
"logo": false,
"custom-lines": {"Funny:": "joke", "exampleline:": "examplevalue"}
}
If it doesn't work for you make sure that you have the newest node(it's developed using node 14.17.0, although it should work with everything >=8.6)
If you came here because of the 'Error - check https://www.npmjs.com/package/yayfetch for more' error, then most likely the software just can't detect the information. Why? Because of the system you use. It may not work when:
- You're using linux subsystem for windows
- Your system is within virtual machine