Function hasPeerDependency

  • Check if a package has a peer dependency

    Parameters

    • name: string

      the name of the package to check for

    • Optional version: string = '*'

      optional version to check for, defaults to any version

    • Optional cwd: string

      override the working directory

    Returns Promise<boolean>

Generated using TypeDoc