Gathering detailed insights and metrics for sort-package-json-scripts
Gathering detailed insights and metrics for sort-package-json-scripts
Gathering detailed insights and metrics for sort-package-json-scripts
Gathering detailed insights and metrics for sort-package-json-scripts
sort-package-json-no-scripts
Sort an Object or package.json based on the well-known package.json keys
sort-package-json-without-scripts
Sort an Object or package.json based on the well-known package.json keys
vscode-sort-package-json-without-scripts
Sort package.json
sort-npm-scripts
Sort package.json scripts alphabetically. Great as pre-commit hook.
npm install sort-package-json-scripts
Typescript
Module System
Node Version
NPM Version
71.6
Supply Chain
83.3
Quality
76.2
Maintenance
100
Vulnerability
100
License
TypeScript (74.24%)
JavaScript (25.4%)
Smarty (0.35%)
Total Downloads
14,711
Last Day
2
Last Week
21
Last Month
160
Last Year
1,834
14 Stars
1,345 Commits
3 Forks
2 Watchers
1 Branches
17 Contributors
Updated on Jul 23, 2024
Minified
Minified + Gzipped
Latest Version
1.1.27
Package Id
sort-package-json-scripts@1.1.27
Unpacked Size
46.71 kB
Size
10.77 kB
File Count
21
NPM Version
lerna/6.6.2/node@v22.1.0+x64 (win32)
Node Version
22.1.0
Published on
May 03, 2024
Cumulative downloads
Total Downloads
Last Day
100%
2
Compared to previous day
Last Week
-66.7%
21
Compared to previous week
Last Month
-19.6%
160
Compared to previous month
Last Year
-24.3%
1,834
Compared to previous year
2
a better sort package.json scripts, by default is follow npm lifecycle scripts
1yarn add sort-package-json-scripts 2yarn-tool add sort-package-json-scripts
1import sortPackageJsonScripts from 'sort-package-json-scripts'; 2 3let ret = sortPackageJsonScripts({ 4 5 "lint": "npx eslint *.ts", 6 7 "npm:publish": "npm publish", 8 9 "prepublish:lockfile": "npx sync-lockfile .", 10 "tsc:esm": "tsc -p tsconfig.esm.json", 11 "ncu": "npx yarn-tool ncu -u", 12 "sort-package-json": "npx yarn-tool sort", 13 "test": "jest --coverage", 14 "coverage": "npx nyc yarn run test", 15 "test:mocha": "npx mocha --require ts-node/register \"!(node_modules)/*.{test,spec}.{ts,tsx}\"", 16 "tsc:default": "tsc -p tsconfig.json", 17 18 "prepublishOnly": "yarn run ncu && yarn run sort-package-json && yarn run test", 19 20 "postpublish_": "git commit -m \"chore(release): publish\" .", 21}) 22 23console.log(ret) 24/* 25{ 26 coverage: 'npx nyc yarn run test', 27 lint: 'npx eslint *.ts', 28 test: 'jest --coverage', 29 'test:mocha': 'npx mocha --require ts-node/register "!(node_modules)/*.{test,spec}.{ts,tsx}"', 30 'npm:publish': 'npm publish', 31 'prepublish:lockfile': 'npx sync-lockfile .', 32 prepublishOnly: 'yarn run ncu && yarn run sort-package-json && yarn run test', 33 postpublish_: 'git commit -m "chore(release): publish" .', 34 ncu: 'npx yarn-tool ncu -u', 35 'sort-package-json': 'npx yarn-tool sort', 36 'tsc:default': 'tsc -p tsconfig.json', 37 'tsc:esm': 'tsc -p tsconfig.esm.json' 38} 39 */
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
no SAST tool detected
Details
Reason
project is not fuzzed
Details
Reason
93 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
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