Skip to content

This is a small CLI to sort any specified json files alphabetically. This was created to sort localization files, but maybe you will find another use case.

License

Notifications You must be signed in to change notification settings

playt-net/sort-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sort JSON

This is a small CLI to sort any specified json files alphabetically. This was created to sort localization files, but maybe you will find another use case.

Installation

npm install @playt/sort-json --save-dev

Usage

Check if json in folder is sorted:

npx sort-json <folder>

Check if file is sorted:

npx sort-json <path-to-file>

You can also fix these files instead of just checking.

npx sort-json <folder or path-to-file> --fix

License

Licensed under MIT

About

This is a small CLI to sort any specified json files alphabetically. This was created to sort localization files, but maybe you will find another use case.

Resources

License

Stars

Watchers

Forks

Packages

No packages published