项目作者: mleko

项目描述 :
Format your package.json file
高级语言: TypeScript
项目地址: git://github.com/mleko/pkgfmt.git
创建时间: 2017-04-04T16:24:49Z
项目社区:https://github.com/mleko/pkgfmt

开源协议:MIT License

下载


pkgfmt

Format your package.json file

Install

  1. npm install -g pkgfmt

Usage

  1. cd node_project_path
  2. pkgfmt

or

  1. pkgfmt path/to/package.json

Example result
Input

  1. {
  2. "name": "pkgfmt",
  3. "version": "0.0.3",
  4. "description": "Format your package.json file",
  5. "author": "Daniel Król <daniel@krol.me>",
  6. "dependencies": {
  7. "yargs": "^7.0.2",
  8. "es6-shim": "^0.35.3"
  9. },
  10. "devDependencies": {
  11. "jest": "^19.0.2",
  12. "ts-jest": "^19.0.7",
  13. "tslint": "^5.0.0",
  14. "@types/es6-shim": "^0.31.32",
  15. "@types/jest": "^19.2.2",
  16. "@types/node": "^7.0.12",
  17. "@types/yargs": "^6.6.0",
  18. "typescript": "^2.2.2"
  19. }
  20. }

Output

  1. {
  2. "name": "pkgfmt",
  3. "version": "0.0.3",
  4. "description": "Format your package.json file",
  5. "author": "Daniel Król <daniel@krol.me>",
  6. "dependencies": {
  7. "es6-shim": "^0.35.3",
  8. "yargs": "^7.0.2"
  9. },
  10. "devDependencies": {
  11. "@types/es6-shim": "^0.31.32",
  12. "@types/jest": "^19.2.2",
  13. "@types/node": "^7.0.12",
  14. "@types/yargs": "^6.6.0",
  15. "jest": "^19.0.2",
  16. "ts-jest": "^19.0.7",
  17. "tslint": "^5.0.0",
  18. "typescript": "^2.2.2"
  19. }
  20. }