New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

format-package

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

format-package - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

.bin/index.js

@@ -66,3 +66,3 @@ #!/usr/bin/env node

console.log();
console.log('Package.json sorted successfully');
console.log('Package.json formatted successfully');
}

@@ -69,0 +69,0 @@

@@ -13,3 +13,3 @@ // Safety check

throw new Error(
'Something went wrong and some keys were lost - this sort was cancelled and nothing written'
'Something went wrong and some keys were lost - this job was cancelled and nothing written'
);

@@ -16,0 +16,0 @@ }

{
"name": "format-package",
"version": "2.0.0",
"description": "Sensible formatting of package.json",
"version": "2.0.1",
"description": "Sensible formatting and ordering of package.json",
"license": "MIT",

@@ -6,0 +6,0 @@ "engines": {

@@ -1,2 +0,2 @@

# Sort Package
# Format Package

@@ -134,3 +134,3 @@ `package.json` files are notorious for becoming large and overwhelming. When working in teams, this can make it hard to know how to structure the file or where to find certain configurations or scripts - especially since everyone has their own preferences.

```js
const format = require('sort-pkg');
const format = require('format-package');
const pkg = require('<path-to-package.json>');

@@ -137,0 +137,0 @@ const { { defaults: { order: defaultOrder } } = format;

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