# `NPM.Dependency.Stats`
[🔗](https://github.com/elixir-volt/npm_ex/blob/v0.7.4/lib/npm/dependency/stats.ex#L1)

Computes aggregate statistics across all dependencies.

# `avg_deps`

```elixir
@spec avg_deps(map()) :: float()
```

Returns the average number of transitive dependencies.

# `compute`

```elixir
@spec compute(map()) :: map()
```

Computes comprehensive stats from a lockfile.

# `format`

```elixir
@spec format(map()) :: String.t()
```

Formats stats for display.

# `top_scopes`

```elixir
@spec top_scopes(map(), non_neg_integer()) :: [{String.t(), non_neg_integer()}]
```

Returns the top N scopes by package count.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
