Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/susisu/ppp
package.json pretty printer
https://github.com/susisu/ppp
Last synced: 28 days ago
JSON representation
package.json pretty printer
- Host: GitHub
- URL: https://github.com/susisu/ppp
- Owner: susisu
- License: mit
- Created: 2019-01-16T02:36:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T03:17:04.000Z (over 1 year ago)
- Last Synced: 2024-03-14T11:23:33.336Z (8 months ago)
- Language: JavaScript
- Size: 487 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ppp - package.json pretty printer
[![CI](https://github.com/susisu/ppp/workflows/CI/badge.svg)](https://github.com/susisu/ppp/actions?query=workflow%3ACI)A package information viewer alternative to [`npm-view`](https://docs.npmjs.com/cli/view.html).
``` shell
npm i -g @susisu/ppp
```## Usage
``` shell
# show package information on npm
ppp
# or of a local one
ppp < package.json
```### Options
- `-f, --include-field `: Include an additional field. This option is repeatable. See [Configurations](#configurations) or `-h, --help` for the list of available field names.
- `-x, --exclude-field `: Exclude a field. This option is repeatable.
- `-w, --wrap `: Wrap output to the specified size. This overrides the setting of the [configurations file](#configurations).### Configurations
You can place `~/.config/ppp/config.yaml` to customize output fields and text wrapping size. The default configurations are as follows:``` yaml
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](http://opensource.org/licenses/mit-license.php)## Author
Susisu ([GitHub](https://github.com/susisu), [Twitter](https://twitter.com/susisu2413))