Skip to content

Takes any input json file, optionally breaks apart keys by a given delimeter, ie. turns { "keya.keyb": val } into { keya: { keyb: val }}. This will also group all of the same prefixed entries under one key. It will finally then sort all the entries alphabetically, or according to the configured sorting options.

Notifications You must be signed in to change notification settings

rw3iss/json-group-sort-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use:

For now run 'node index.js -h' to see options.

To sort a file:

node index.js -i=<file.json>

Todo:

  • Add as an npm package and command.
  • Break apart keys by delimeter and group.

About

Takes any input json file, optionally breaks apart keys by a given delimeter, ie. turns { "keya.keyb": val } into { keya: { keyb: val }}. This will also group all of the same prefixed entries under one key. It will finally then sort all the entries alphabetically, or according to the configured sorting options.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published