sort-package-json
Advanced tools
Comparing version 1.27.0 to 1.28.0
@@ -15,2 +15,3 @@ #!/usr/bin/env node | ||
'repository', | ||
'funding', | ||
'license', | ||
@@ -170,2 +171,3 @@ 'author', | ||
sortSubKey('repository', ['type', 'url']); | ||
sortSubKey('funding', ['type', 'url']); | ||
sortSubKey('scripts', compareScriptKeys); | ||
@@ -172,0 +174,0 @@ sortSubKey('betterScripts', compareScriptKeys); |
{ | ||
"name": "sort-package-json", | ||
"version": "1.27.0", | ||
"version": "1.28.0", | ||
"description": "Sort an Object or package.json based on the well-known package.json keys", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -31,8 +31,8 @@ ## Sort Package.json | ||
#### API | ||
```sh | ||
npm install --save sort-package-json | ||
```bash | ||
npm install --save-dev sort-package-json | ||
``` | ||
#### CLI | ||
```sh | ||
```bash | ||
npm install --global sort-package-json | ||
@@ -78,3 +78,3 @@ ``` | ||
```sh | ||
```bash | ||
npx sort-package-json | ||
@@ -94,3 +94,3 @@ ``` | ||
- [AVA](https://github.com/avajs/ava) | ||
- [bowserify](http://browserify.org/) | ||
- [browserify](http://browserify.org/) | ||
- [babel](https://babeljs.io/) | ||
@@ -105,4 +105,4 @@ - [eslint](https://eslint.org/) | ||
The package.json file can be sorted automatically before commiting, install `husky` and `lint-staged` and add the following to the package.json file: | ||
```javascript | ||
The package.json file can be sorted automatically before committing, install `husky` and `lint-staged` and add the following to the package.json file: | ||
```js | ||
{ | ||
@@ -109,0 +109,0 @@ "husky": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10821
229