Gulp plugin for deterministic sorting of JSON files. Supports deep structures, custom compare functions, replacers, and formatting options.
This plugin is authored in ES6, so until Node picks up ES6 module support you'll need to pluck the default property from the require'd import.
var gulp = ;var sortJSON = default;gulp;
By default (with no compare function provided), sorting happens alphabetically by key.
If a file contains invalid JSON, a parse error will be emitted on the stream.
Newlines in the output are always LF. Pipe the results through gulp-eol as needed.
See json-stable-stringify for details and behavior for each option; the params are passed straight through.
MIT License (Expat)