Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sort-package-json

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sort-package-json - npm Package Compare versions

Comparing version 1.27.0 to 1.28.0

2

index.js

@@ -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);

2

package.json
{
"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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc