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

prettier-plugin-packagejson

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-packagejson

Prettier package.json plugin to make the order of properties nice.

  • 2.5.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
915K
increased by12.68%
Maintainers
1
Weekly downloads
 
Created

What is prettier-plugin-packagejson?

The prettier-plugin-packagejson npm package is a plugin for Prettier that formats your package.json file according to a consistent style. It helps maintain a clean and organized package.json file by sorting and formatting its contents.

What are prettier-plugin-packagejson's main functionalities?

Sorting dependencies

This feature sorts the dependencies in your package.json file alphabetically, ensuring a consistent order.

{
  "dependencies": {
    "express": "^4.17.1",
    "lodash": "^4.17.21"
  }
}

Sorting scripts

This feature sorts the scripts in your package.json file alphabetically, making it easier to find and manage scripts.

{
  "scripts": {
    "build": "webpack",
    "start": "node index.js"
  }
}

Sorting other fields

This feature sorts other fields like keywords, contributors, etc., alphabetically to maintain a clean and organized structure.

{
  "keywords": [
    "formatting",
    "prettier",
    "plugin"
  ]
}

Other packages similar to prettier-plugin-packagejson

Keywords

FAQs

Package last updated on 20 Nov 2024

Did you know?

Socket

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.

Install

Related posts

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