https://github.com/zacanger/sortpack
Organize your package.json
https://github.com/zacanger/sortpack
cleanup fixpack organize package package-json sort
Last synced: 6 months ago
JSON representation
Organize your package.json
- Host: GitHub
- URL: https://github.com/zacanger/sortpack
- Owner: zacanger
- License: mit
- Created: 2019-01-29T03:58:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-03T02:01:39.000Z (almost 2 years ago)
- Last Synced: 2025-04-12T01:39:59.519Z (6 months ago)
- Topics: cleanup, fixpack, organize, package, package-json, sort
- Language: JavaScript
- Homepage: http://npm.im/sortpack
- Size: 883 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# sortpack
Organize your package.json
It's like Prettier for your package.json. Inspired by fixpack, but actively maintained!
[Donate](https://ko-fi.com/zacanger)
--------
## Installation
`npm i -D sortpack`
## Usage
`sortpack`
Add to your package.json:
```
"scripts": {
"something": "sortpack"
}
```Options:
```
-i [--indent] # either the string 'tab', or any number
```Use with `husky` and `lint-staged` for automated goodness:
```
npm i -D husky sortpack lint-staged// add to package.json:
"lint-staged": {
"package.json": [
"sortpack"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
```[LICENSE](./LICENSE.md)