added method isNpmDependency