DEV Community

Hasan TEZCAN
Hasan TEZCAN

Posted on

Sort all JSON files in the directory as alphabetically

Installation

npm i -g json-sort-cli
Enter fullscreen mode Exit fullscreen mode

Usage

jsonsort directory
Enter fullscreen mode Exit fullscreen mode

Image description

SOURCE:

Top comments (3)

Collapse
 
frederik_vl profile image
Frederik Van Lierde

Why did you don't use te available methods in the operating systems and why do you want to create an extra package?

dir *.json /o
Enter fullscreen mode Exit fullscreen mode
Collapse
 
hasantezcan profile image
Hasan TEZCAN • Edited

I don't have the "dir" executable where can I find it?

Collapse
 
frederik_vl profile image
Frederik Van Lierde

dir is standard in all windows, it is DOS command
Max has ls. as well as linux and unix