Socket
Socket
Sign inDemoInstall

pkgfmt

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pkgfmt

Format your package.json file


Version published
Maintainers
1
Created
Source

pkgfmt

Format your package.json file

Install

npm install -g pkgfmt

Usage

cd node_project_path
pkgfmt

or

pkgfmt path/to/package.json

Example result Input

{
  "name": "pkgfmt",
  "version": "0.0.3",
  "description": "Format your package.json file",
  "author": "Daniel Król <daniel@krol.me>",
  "dependencies": {
    "yargs": "^7.0.2",
    "es6-shim": "^0.35.3"
  },
  "devDependencies": {
    "jest": "^19.0.2",
    "ts-jest": "^19.0.7",
    "tslint": "^5.0.0",
    "@types/es6-shim": "^0.31.32",
    "@types/jest": "^19.2.2",
    "@types/node": "^7.0.12",
    "@types/yargs": "^6.6.0",
    "typescript": "^2.2.2"
  }
}

Output

{
  "name": "pkgfmt",
  "version": "0.0.3",
  "description": "Format your package.json file",
  "author": "Daniel Król <daniel@krol.me>",
  "dependencies": {
    "es6-shim": "^0.35.3",
    "yargs": "^7.0.2"
  },
  "devDependencies": {
    "@types/es6-shim": "^0.31.32",
    "@types/jest": "^19.2.2",
    "@types/node": "^7.0.12",
    "@types/yargs": "^6.6.0",
    "jest": "^19.0.2",
    "ts-jest": "^19.0.7",
    "tslint": "^5.0.0",
    "typescript": "^2.2.2"
  }
}

Keywords

FAQs

Package last updated on 05 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc