2021-06-19 13:08:36 +00:00
|
|
|
#!/usr/bin/env nix-shell
|
|
|
|
#! nix-shell -p jq -p curl -i bash
|
|
|
|
|
|
|
|
curl https://raw.githubusercontent.com/fanzeyi/pokemon.json/master/pokedex.json \
|
|
|
|
| jq -r '.[].name.english' \
|
|
|
|
| tr '[:upper:]' '[:lower:]' \
|
2021-06-19 13:23:13 +00:00
|
|
|
| tr ' ' '-' \
|
|
|
|
| sed 's/\.//g' \
|
|
|
|
| sed 's/://g' \
|
2021-06-19 13:08:36 +00:00
|
|
|
| jq --raw-input '.' \
|
|
|
|
| jq -s > pokemon.json
|