Prettier plugin for package.json
Installations
npm install prettier-plugin-packagejson
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
22.13.0
NPM Version
10.9.2
Releases
Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
matzkoh
Download Statistics
Total Downloads
58,364,915
Last Day
134,437
Last Week
682,585
Last Month
3,165,481
Last Year
36,454,096
GitHub Statistics
339 Stars
631 Commits
11 Forks
3 Watching
1 Branches
10 Contributors
Bundle Size
10.22 kB
Minified
4.22 kB
Minified + Gzipped
Package Meta Information
Latest Version
2.5.8
Package Id
prettier-plugin-packagejson@2.5.8
Unpacked Size
5.42 kB
Size
2.59 kB
File Count
9
NPM Version
10.9.2
Node Version
22.13.0
Publised On
17 Jan 2025
Total Downloads
Cumulative downloads
Total Downloads
58,364,915
Last day
-14.2%
134,437
Compared to previous day
Last week
-20.7%
682,585
Compared to previous week
Last month
-2.7%
3,165,481
Compared to previous month
Last year
163.9%
36,454,096
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
Peer Dependencies
1
Dev Dependencies
4
prettier-plugin-packagejson
A Prettier plugin to sort the keys of a package.json
file using sort-package-json.
Installation
1npm i -D prettier prettier-plugin-packagejson
For prettier v3+ you need to configure
1module.exports = { 2 // add this 3 plugins: ['prettier-plugin-packagejson'], 4}
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
packaging workflow detected
Details
- Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:9
Reason
0 existing vulnerabilities detected
Reason
Found 0/14 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/node-version.yml:1
- Warn: no topLevel permission defined: .github/workflows/release.yml:1
- Warn: no topLevel permission defined: .github/workflows/test.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node-version.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/matzkoh/prettier-plugin-packagejson/node-version.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/node-version.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/matzkoh/prettier-plugin-packagejson/node-version.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/matzkoh/prettier-plugin-packagejson/release.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/matzkoh/prettier-plugin-packagejson/test.yml/master?enable=pin
- Info: 0 out of 3 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 third-party GitHubAction dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 30 are checked with a SAST tool
Score
4.7
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More