🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@nice-move/prettier-plugin-package-json

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nice-move/prettier-plugin-package-json

A `prettier` plugin to make `package.json` prettier

0.9.2
latest
Source
npm
Version published
Maintainers
1
Created
Source

@nice-move/prettier-plugin-package-json

A prettier plugin to make package.json prettier.

npm github node

Read about npm-package.json.

Installation

npm install prettier @nice-move/prettier-plugin-package-json --save-dev

Usage

// .prettierrc.json
{
  "overrides": [
    {
      "files": "package.json",
      "options": {
        "parser": "package-json"
      }
    }
  ]
}
prettier --write **/package.json

Feature

  • Normalize by normalize-package-data and normalize-package-bin
  • Sort package.json fields in a preset order
  • Expand author and contributors fields into objects
  • Remove deprecated fields like preferGlobal, engineStrict
  • Merge bundleDependencies into bundledDependencies
  • Rename esnext / jsnext to module, rename typings to types
  • Differentiate UNLICENSED and Unlicense license by private
  • Remove leading ./ from main / files[n]
  • Normalize engines.* versions
  • Normalize repository fields
  • Set version when needed
  • More ...

Keywords

nice-move

FAQs

Package last updated on 30 Apr 2025

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