yarn-outdated-formatter
v4.0.0
Published
yarn-outdated-formatter =======================
Downloads
51,696
Readme
yarn-outdated-formatter
Usage
format-yarn-outdated --help
shows the help:
NAME
format-yarn-outdated - yarn outdated --json formatter
SYNOPSIS
format-yarn-outdated [-h help] [-v version] [-f format]
[-e excludes] [-c changelogs]
OPTIONS
--help, -h Prints the help.
--version, -v Prints the package version.
--format, -f Output format. One of either markdown, json, mackerel or csv can be used. Default: markdown
--excludes, -e Path to YAML file which specify package names to exclude
--changelogs, -c Path to YAML file which specify changelog uris for the packages
EXAMPLES
$ yarn outdated --json | $(yarn bin)/format-yarn-outdated
$ yarn outdated --json | $(yarn bin)/format-yarn-outdated --excludes /path/to/excludes.yml --changelogs /path/to/changelogs.yml
$ yarn outdated --json | $(yarn bin)/format-yarn-outdated --format json | jq '.minor[],.patch[] | .[0]' | xargs -I{} yarn upgrade {}
$ yarn outdated --json | $(yarn bin)/format-yarn-outdated --format mackerel | mkr throw --service ServiceMetricName
NPM SUPPORT
To detecting dependencies or devDependencies, --long option is required.
$ npm outdated --json --long | $(npm bin)/format-yarn-outdated
URL will not shown.
CHANGELOG URL will not shown unless you set --changelogs option.
Examples
- Markdown: examples/formatted.md
- JSON: examples/formatted.json
- Mackerel: examples/formatted.mackerel
- CSV: examples/formatted.csv
License
MIT License