Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aeosynth/fetch

polyglot fetch
https://github.com/aeosynth/fetch

bash crystal csharp go janet javascript julia kotlin neofetch nim perl python r raku ruby rust screenfetch shell

Last synced: about 1 month ago
JSON representation

polyglot fetch

Awesome Lists containing this project

README

        

# fetch
a polyglot repo showing system status fetching in different languages. the output will look something like this:

```
james@void
kernel 5.4.46_1
term alacritty
shell /bin/sh
tasks 151
mem 2559m / 3974m
uptime 0d 16h 39m
```

| language | sloc |
| - | - |
| crystal | 17 |
| raku | 17 |
| ruby | 17 |
| julia | 19 |
| deno | 20 |
| kotlin | 20 |
| node | 20 |
| python | 21 |
| r | 21 |
| janet | 22 |
| bash | 23 |
| nim | 25 |
| perl | 27 |
| sh | 28 |
| csharp | 30 |
| go | 46 |
| rust | 61 |

the deno script must be run with `deno run --allow-env --allow-read deno.js`

for most languages the code size is determined by use of imports, and whether a `main` function is needed

# spec

try to follow an existing program for code organization

external programs must not be used

files must be closed after read (most languages do this automatically)

the output must be in a single command. there must not be any code besides string interpolation / concatenation, ie define all variables beforehand.

if an official style formatter exists it must be used

the readme table is sorted by sloc