sortpack

Organize your package.json

sortpack

Organize your package.json

It's like Prettier for your package.json. Inpsired by fixpack, but actively maintained!


Installation

npm i -D sortpack

Usage

sortpack

Add to your package.json:

"scripts": {
  "something": "sortpack"
}

Options:

-i [--indent] # one of: 2 4 tab

Use with huskyand lint-stagedfor 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

HomePage

https://github.com/zacanger/sortpack#readme

Repository

https://github.com/zacanger/sortpack.git


上一篇:webpack-cdn-plugin
下一篇:zeedown

相关推荐

暂无相关文章

官方社区

扫码加入 JavaScript 社区