peer-compatible-cli
v1.0.1
Published
Find versions of a package that work with given peer dependencies
Downloads
11
Maintainers
Readme
peer-compatible-cli
Find versions of a package that work with given peer dependencies
Example
Imagine you want to use component library L, which requires framework F@^2.0.0 as a peer dependency.
But you are for some reason still on [email protected] and cannot upgrade to [email protected].
But in the past, when [email protected] was the latest version, there was a version of L that supported it.
So now you want to find out what versions of L still support [email protected].
With peer-compatible-cli, this can be done:
$ peer-compatible L [email protected]
1.0.0
1.0.1
1.1.0Installation
npm install -g peer-compatible-cliUsage
peer-compatible <pkg> [<peer>...]
peer-compatible some-lib [email protected] [email protected]
peer-compatible @angular/material @angular/[email protected]Exit codes
0if at least one compatible version has been found1if no compatible versions have been found2for invalid CLI usage
