# `NPM.Config.Npmrc`
[🔗](https://github.com/elixir-volt/npm_ex/blob/v0.7.4/lib/npm/config/npmrc.ex#L1)

Parses and analyzes .npmrc configuration files.

Supports project, user, and global .npmrc locations.

# `format`

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

Formats .npmrc config for display.

# `has_auth?`

```elixir
@spec has_auth?(map()) :: boolean()
```

Checks if auth token is configured.

# `locate`

```elixir
@spec locate(String.t()) :: [String.t()]
```

Finds all .npmrc files for a project.

# `merge`

```elixir
@spec merge([map()]) :: map()
```

Merges multiple .npmrc configs (later overrides earlier).

# `parse`

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

Parses an .npmrc file into a map.

# `read`

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

Reads and parses an .npmrc file from disk.

# `scoped_registries`

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

Extracts scoped registry configurations.

---

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