# `VulnCheck.Workspace.AppFile`
[🔗](https://github.com/Voskan/vulncheck/blob/v1.0.1/lib/vulncheck/workspace/app_file.ex#L1)

Reader for OTP application resource files (`ebin/<app>.app` and
`src/<app>.app.src`) built on the atom-safe `VulnCheck.ErlTerm` parser.

# `t`

```elixir
@type t() :: %VulnCheck.Workspace.AppFile{
  applications: [String.t()],
  included_applications: [String.t()],
  mod: String.t() | nil,
  modules: [String.t()],
  name: String.t(),
  optional_applications: [String.t()],
  registered: [String.t()],
  vsn: String.t() | nil
}
```

# `find_in_ebin`

```elixir
@spec find_in_ebin(String.t() | nil) :: t() | nil
```

Finds and reads the single `.app` file of an `ebin` directory.

# `read`

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

Reads and parses an application resource file.

# `read_ebin`

```elixir
@spec read_ebin(String.t() | nil, String.t()) :: t() | nil
```

Reads `<ebin_dir>/<app>.app`, returning `nil` when it does not exist or is
unreadable.

---

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