Function hasPeerDependency

  • Check if a package has a peer dependency

    Parameters

    • name: string

      the name of the package to check for

    • Optionalversion: string = '*'

      optional version to check for, defaults to any version

    • Optionalcwd: string

      override the working directory

    Returns Promise<boolean>