1.0.1 • Published 8 years ago
peer-compatible-cli v1.0.1
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 F@1.2.3 and cannot upgrade to F@2.0.0.
But in the past, when F@1.2.3 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 F@1.2.3.
With peer-compatible-cli, this can be done:
$ peer-compatible L F@1.2.3
1.0.0
1.0.1
1.1.0Installation
npm install -g peer-compatible-cliUsage
peer-compatible <pkg> [<peer>...]
peer-compatible some-lib some-framework@1.0.0 some-other-peer@1.2.3
peer-compatible @angular/material @angular/core@2.0.0Exit codes
0if at least one compatible version has been found1if no compatible versions have been found2for invalid CLI usage