mirror of
https://github.com/public-apis/public-apis.git
synced 2024-09-21 00:01:12 +02:00
9 lines
335 B
Bash
Executable File
9 lines
335 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# create json directory if not already present
|
|
mkdir -p ../json
|
|
# parse API README and print (minified) JSON to stdout, redirect to /json
|
|
./md2json.py ../README.md > ../json/entries.min.json
|
|
# beautify the previously created JSON file, redirect to /json
|
|
python -m json.tool ../json/entries.min.json > ../json/entries.json
|