Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

cson-sort — sort the contents of a CSON file

This package provides a small program, cson-sort, that takes CSON data and writes it back out with all objects sorted by key. This is useful as a Git filter to make managing CSON files easier, for example in your Atom configuration.

This script is derived from Season.

Installing

npm install -g cson-sort

Setting up Git filter

Edit .git/config to contain the following:

[filter "cson-sort"]
    clean = cson-sort

Set up a .gitattributes file to mark files to be filtered:

*.cson filter=cson-sort

And add and commit your files!

About

CSON sorter, derived from atom/season

Resources

License

Packages

No packages published
You can’t perform that action at this time.