# gulp-json-sorter

> Sorts JSON files alphabetically and optionally renames underscores to be hyphens

Latest version **0.0.7** (published 2015-09-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-json-sorter
pnpm add gulp-json-sorter
yarn add gulp-json-sorter
bun add gulp-json-sorter
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2015-09-18 |
| First published | 2015-08-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Chester Rivas |
| Maintainers | crivas |

## Links

- npm: https://www.npmjs.com/package/gulp-json-sorter
- Repository: https://github.com/crivas/gulp-json-sorter
- Homepage: https://github.com/crivas/gulp-json-sorter#readme
- Issues: https://github.com/crivas/gulp-json-sorter/issues
- npm.io page: https://npm.io/package/gulp-json-sorter

## Dependencies (3)

- [through2](https://npm.io/package/through2.md) ^0.6.3
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.6
- [underscore-node](https://npm.io/package/underscore-node.md) ^0.1.2

## Recent versions

- 0.0.7 (latest) — 2015-09-18
- 0.0.6 — 2015-08-26
- 0.0.5 — 2015-08-26
- 0.0.3 — 2015-08-25

## README

Gulp JSON Sorter
====================
![gulp-json-sorter build status](https://travis-ci.org/crivas/gulp-json-sorter.svg?branch=master)

> Sorts JSON files alphabetically and optionally renames underscores to be hyphens.

NPM Install
```sh
npm i gulp-json-sorter
```

Basic Example
```js
var jsonSorter = require('gulp-json-sorter');

gulp.task('sort', function () {

  return gulp.src(['file1.json', 'file2.json'])
    .pipe(jsonSorter())
    .pipe(gulp.dest('/output'))

});
```

With Rename Enabled
```js
var jsonSorter = require('gulp-json-sorter');

gulp.task('sort', function () {

  return gulp.src(['file1.json', 'file2.json'])
    .pipe(jsonSorter({
        rename: true
      }))
    .pipe(gulp.dest('/output'))

});
```

---
_Source: https://npm.io/package/gulp-json-sorter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
