ppp - package.json pretty printer
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