ember-apply
    Preparing search index...

    Function hasDependency

    Public API for the packageJson namespace

    • Check if a package has a dependency in either devDependencies or dependencies

      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>