peer-compatible-cli

1.0.1 • Public • Published

peer-compatible-cli

Find versions of a package that work with given peer dependencies

build status AppVeyor build status

npm package license

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.0

Installation

npm install -g peer-compatible-cli

Usage

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.0

Exit codes

  • 0 if at least one compatible version has been found
  • 1 if no compatible versions have been found
  • 2 for invalid CLI usage

Package Sidebar

Install

npm i peer-compatible-cli

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • jeysal