DEV Community

Hasan TEZCAN
Hasan TEZCAN

Posted on

2

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

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay