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

Validates lockfile consistency against package.json dependencies.

# `check`

```elixir
@spec check(map(), map()) :: map()
```

Runs all consistency checks.

# `extraneous`

```elixir
@spec extraneous(map(), map()) :: [String.t()]
```

Checks if the lockfile has packages not in package.json dependencies.

# `format_results`

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

Formats check results for display.

# `mismatched`

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

Checks if locked versions satisfy the declared ranges.

# `missing`

```elixir
@spec missing(map(), map()) :: [String.t()]
```

Checks if all package.json dependencies are in the lockfile.

---

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