- sorts JSON files, JSON keys in ASC, in recursive way.
node index.js <Input-JSON-FILE> <OUTPUT-JSON-FILE>
Input-JSON-FILE
, i.e. myFile.json
File to be sorted. Required.
OUTPUT-JSON-FILE
Output file, sorted input file. Optional. If no value provided output file name will have same name as Input-JSON-FILE with suffix _sorted
, i.e myFile_sorted.json
Project based on awsome json-keys-sort.