@susisu/ppp

0.1.2 • Public • Published

ppp - package.json pretty printer

CI

A package information viewer alternative to npm-view.

npm i -g @susisu/ppp

Usage

# show package information on npm
ppp <pkg>
# or of a local one
ppp < package.json

Options

  • -f, --include-field <name>: Include an additional field. This option is repeatable. See Configurations or -h, --help for the list of available field names.
  • -x, --exclude-field <name>: Exclude a field. This option is repeatable.
  • -w, --wrap <int>: Wrap output to the specified size. This overrides the setting of the configurations file.

Configurations

You can place ~/.config/ppp/config.yaml to customize output fields and text wrapping size. The default configurations are as follows:

fields:
  - name
  - version
  # - installed
  - description
  # - keywords
  - license
  - author
  # - maintainers
  - homepage
  # - npm
  # - repository
  # - tarball
  # - shasum
  # - module
  # - types
  - binaries
  - engines
  - os
  - cpu
  # - dependencies
  - peerDependencies
  # - optionalDependencies
  # - devDependencies
  - tags
wrap: 80

License

MIT License

Author

Susisu (GitHub, Twitter)

Dependents (0)

Package Sidebar

Install

npm i @susisu/ppp

Weekly Downloads

9

Version

0.1.2

License

MIT

Unpacked Size

24.3 kB

Total Files

12

Last publish

Collaborators

  • susisu