![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
gulp-json-sort
Advanced tools
Gulp plugin for deterministic sorting of JSON files. Supports deep structures, custom compare functions, replacers, and formatting options.
Thin wrapper over substack's json-stable-stringify, which does all the hard work.
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 = require('gulp');
var sortJSON = require('gulp-json-sort').default;
gulp.task('sort-json', function() {
return gulp.src('./**/*.json')
.pipe(sortJSON({ space: 2 }))
.pipe(gulp.dest('./'));
});
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.
sortJSON(options?: {
cmp?: (left: { key: string, value: any }, right: { key: string, value: any }) => number,
cycles?: boolean,
replacer?: (key: string, value: any) => any,
space?: number | string
});
See json-stable-stringify for details and behavior for each option; the params are passed straight through.
MIT License (Expat)
FAQs
Gulp plugin for deterministic sorting of JSON files
The npm package gulp-json-sort receives a total of 890 weekly downloads. As such, gulp-json-sort popularity was classified as not popular.
We found that gulp-json-sort demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.