mirror of
https://github.com/public-apis/public-apis
synced 2024-12-05 07:45:17 +01:00
10 lines
391 B
Bash
Executable File
10 lines
391 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
|
|
node condenseMd.js ../README.md > single_table.md
|
|
node md2json.js single_table.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
|