Skip to content

stuft2/sort-keys-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sort-keys-cli

CLI tool for sindresorhus/sort-keys

Why

  • Alphabetize any JSON file quickly for easier organization
  • Can be used as a way to sort a Swagger/OpenAPI document

Usage

$ sort-keys <source>[ <destination>]

Options

-d, --deep      Deep sort all objects
<source>        Source JSON file
<destination>   (Optional) Destination file location. Will overwrite source if not provided.

Examples

Sort all keys in a JSON file
$ sort-keys example.json --deep

About

CLI tool for sindresorhus/sort-keys

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published