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

Computes statistics about the lockfile itself.

# `compute`

```elixir
@spec compute(String.t()) :: {:ok, map()} | {:error, term()}
```

Computes lockfile metadata.

# `content_stats`

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

Computes lockfile content stats.

# `estimated_size`

```elixir
@spec estimated_size(map()) :: non_neg_integer()
```

Estimates disk size of node_modules from lockfile.

# `format_size`

```elixir
@spec format_size(non_neg_integer()) :: String.t()
```

Formats size in human-readable form.

---

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