---
title: "@vltpkg/types: Reference — vlt docs"
description: "Documentation for the vlt client and the vlt registry."
url: "https://docs.vlt.io/client/api-reference/types/reference"
image: "https://docs.vlt.io/og/client/api-reference/types/reference"
lang: "en"
---

# Reference

## Type Aliases

### BrotliAlternate

```ts
type BrotliAlternate = object;
```

Defined in: index.ts:1132

The absolute URL of a version's Brotli (`.tar.br`) tarball, from the `tar.br` entry in its `dist.alternates` -- but only when that entry resolves to the `.tgz`'s own sibling, i.e. [brotliTarballName](https://docs.vlt.io/client/api-reference/types/reference.md#brotlitarballname) of `tarball`. Anything else reads as no alternate at all.

`alternates[].tarball` is a reference relative to `dist.tarball`, and the protocol lets a registry point it anywhere. This client uses only the conventional name, because two things downstream re-derive it and both would otherwise be wrong: the format is read back off the URL suffix (brotli bytes carry no signature to sniff), and a lockfile node spends a single flag bit instead of a second URL, rebuilding the address from the `.tgz` by this same convention. Narrowing here, at the one point where the alternate is chosen, is what makes both of those derivations sound -- and costs an unusual reference the optimization rather than the install.

#### Type declaration

| Name         | Type                                                                                   | Description                                         |
| ------------ | -------------------------------------------------------------------------------------- | --------------------------------------------------- |
| `integrity`? | [`Integrity`](https://docs.vlt.io/client/api-reference/types/reference.md#integrity-2) | The alternate's own hash, if the registry sent one. |
| `tarball`    | `string`                                                                               | The absolute URL of the `.tar.br`.                  |

---

### Bugs

```ts
type Bugs = 
  | string
  | {
  email: string;
  url: string;
};
```

Defined in: index.ts:435

---

### ConditionalValue

```ts
type ConditionalValue = 
  | ConditionalValue[]
  | ConditionalValueObject
  | string
  | null;
```

Defined in: index.ts:88

---

### ConditionalValueObject

```ts
type ConditionalValueObject = object;
```

Defined in: index.ts:84

#### Index Signature

```ts
[k: string]: ConditionalValue
```

---

### DependencySaveType

```ts
type DependencySaveType = DependencyTypeShort | "implicit";
```

Defined in: index.ts:1641

Unique keys that indicate how a new or updated dependency should be saved back to a manifest.

`'implicit'` is used to indicate that a dependency should be saved as whatever type it already exists as. If the dependency does not exist, then `'implicit'` is equivalent to `'prod'`, as that is the default save type.

---

### DependencyTypeLong

```ts
type DependencyTypeLong = 
  | "dependencies"
  | "devDependencies"
  | "optionalDependencies"
  | "peerDependencies";
```

Defined in: index.ts:1620

Name of the package.json keys used to define different types of dependencies.

---

### DependencyTypeShort

```ts
type DependencyTypeShort = "dev" | "optional" | "peer" | "peerOptional" | "prod";
```

Defined in: index.ts:1629

Unique keys that define different types of dependencies relationship.

---

### Dist

```ts
type Dist = object;
```

Defined in: index.ts:42

The Manifest\['dist'] field present in registry manifests

#### Type declaration

| Name            | Type                                                                                   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| --------------- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `alternates`?   | `object`\[]                                                                            | Alternate tarball formats the registry offers for this version. A `tar.br` entry is a Brotli-recompressed tar whose `tarball` is a reference relative to this `dist`'s `tarball` (e.g. the bare filename `foo-1.2.3.tar.br`), resolved with `new URL(entry.tarball, tarball)`. An alternate is a different artifact, not a re-encoding of the same bytes. It hashes differently from the `.tgz`, so `dist.integrity` does not describe it. The `integrity` field here is the alternate's own hash. It is optional, because a hash does not compress and a registry may prefer to keep packuments small. If a registry does send it, the client pins it like any other integrity, and can look the package up in the global store without downloading anything first. If it does not, the client verifies the download against the tarball response's RFC 9530 `Repr-Digest` header and learns the hash from there. |
| `fileCount`?    | `number`                                                                               | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `integrity`?    | [`Integrity`](https://docs.vlt.io/client/api-reference/types/reference.md#integrity-2) | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `shasum`?       | `string`                                                                               | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `signatures`?   | `object`\[]                                                                            | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `tarball`?      | `string`                                                                               | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `unpackedSize`? | `number`                                                                               | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

---

### EdgeLike

```ts
type EdgeLike = object;
```

Defined in: index.ts:1680

#### Type declaration

| Name        | Type                                                                                                     |
| ----------- | -------------------------------------------------------------------------------------------------------- |
| `from`      | [`NodeLike`](https://docs.vlt.io/client/api-reference/types/reference.md#nodelike)                       |
| `name`      | `string`                                                                                                 |
| `optional`? | `boolean`                                                                                                |
| `peer`?     | `boolean`                                                                                                |
| `spec`      | [`SpecLikeBase`](https://docs.vlt.io/client/api-reference/spec/module_index.md#speclikebase)             |
| `to`?       | [`NodeLike`](https://docs.vlt.io/client/api-reference/types/reference.md#nodelike)                       |
| `type`      | [`DependencyTypeShort`](https://docs.vlt.io/client/api-reference/types/reference.md#dependencytypeshort) |

---

### Exports

```ts
type Exports = 
  | Exclude<ConditionalValue, null>
  | ExportsSubpaths;
```

Defined in: index.ts:95

---

### ExportsSubpaths

```ts
type ExportsSubpaths = { [path in "." | `./${string}`]?: ConditionalValue };
```

Defined in: index.ts:91

---

### Funding

```ts
type Funding = 
  | FundingEntry
  | FundingEntry[];
```

Defined in: index.ts:102

---

### FundingEntry

```ts
type FundingEntry = 
  | string
  | {
[key: string]: JSONField;   type: string;
  url: string;
};
```

Defined in: index.ts:100

---

### GraphLike

```ts
type GraphLike = object;
```

Defined in: index.ts:1690

#### Type declaration

| Name           | Type                                                                                                                                                                   |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `addEdge`      | (`type`, `spec`, `from`, `to`?) => [`EdgeLike`](https://docs.vlt.io/client/api-reference/types/reference.md#edgelike)                                                  |
| `addNode`      | (`id`?, `manifest`?, `spec`?, `name`?, `version`?) => [`NodeLike`](https://docs.vlt.io/client/api-reference/types/reference.md#nodelike)                               |
| `edges`        | `Set`<[`EdgeLike`](https://docs.vlt.io/client/api-reference/types/reference.md#edgelike)>                                                                              |
| `importers`    | `Set`<[`NodeLike`](https://docs.vlt.io/client/api-reference/types/reference.md#nodelike)>                                                                              |
| `mainImporter` | [`NodeLike`](https://docs.vlt.io/client/api-reference/types/reference.md#nodelike)                                                                                     |
| `nodes`        | `Map`<[`DepID`](https://docs.vlt.io/client/api-reference/dep-id/browser.md#depid), [`NodeLike`](https://docs.vlt.io/client/api-reference/types/reference.md#nodelike)> |
| `nodesByName`  | `Map`<`string`, `Set`<[`NodeLike`](https://docs.vlt.io/client/api-reference/types/reference.md#nodelike)>>                                                             |
| `projectRoot`  | `string`                                                                                                                                                               |
| `removeNode()` | `void`                                                                                                                                                                 |

---

### Imports

```ts
type Imports = Record<`#${string}`, ConditionalValue>;
```

Defined in: index.ts:98

---

### Integrity

```ts
type Integrity = `sha512-${string}`;
```

Defined in: index.ts:36

sha512 SRI string

---

### JSONField

```ts
type JSONField = 
  | JSONField[]
  | boolean
  | number
  | string
  | {}
  | null
  | undefined;
```

Defined in: index.ts:26

anything that can be encoded in JSON

---

### KeyID

```ts
type KeyID = `SHA256:${string}`;
```

Defined in: index.ts:39

SHA256 key identifier

---

### Keywords

```ts
type Keywords = string[] | string;
```

Defined in: index.ts:442

---

### Manifest

```ts
type Manifest = object;
```

Defined in: index.ts:856

#### Type declaration

| Name                    | Type                                                                                                                                     | Description                                                                                                                                                                                                                                                                                     |
| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `acceptDependencies`?   | `Record`<`string`, `string`>                                                                                                             | dependency ranges that are acceptable, but not forced                                                                                                                                                                                                                                           |
| `author`?               | [`Person`](https://docs.vlt.io/client/api-reference/types/reference.md#person)                                                           | the author of a package                                                                                                                                                                                                                                                                         |
| `bin`?                  | `Record`<`string`, `string`> \| `string`                                                                                                 | executable built and linked by this package                                                                                                                                                                                                                                                     |
| `bugs`?                 | [`Bugs`](https://docs.vlt.io/client/api-reference/types/reference.md#bugs)                                                               | where to go to file issues                                                                                                                                                                                                                                                                      |
| `bundleDependencies`?   | `string`\[]                                                                                                                              | names of dependencies included in the package tarball                                                                                                                                                                                                                                           |
| `contributors`?         | [`Person`](https://docs.vlt.io/client/api-reference/types/reference.md#person)\[]                                                        | contributors to the package                                                                                                                                                                                                                                                                     |
| `cpu`?                  | `string`\[] \| `string`                                                                                                                  | supported CPU architectures this package can run on                                                                                                                                                                                                                                             |
| `dependencies`?         | `Record`<`string`, `string`>                                                                                                             | production dependencies, name:specifier                                                                                                                                                                                                                                                         |
| `deprecated`?           | `string`                                                                                                                                 | a message indicating that this is not to be used                                                                                                                                                                                                                                                |
| `description`?          | `string`                                                                                                                                 | a short description of the package                                                                                                                                                                                                                                                              |
| `devDependencies`?      | `Record`<`string`, `string`>                                                                                                             | development dependencies, name:specifier                                                                                                                                                                                                                                                        |
| `dist`?                 | [`Dist`](https://docs.vlt.io/client/api-reference/types/reference.md#dist)                                                               | Only present in Manifests served by a registry. Contains information about the artifact served for this package release.                                                                                                                                                                        |
| `engines`?              | `Record`<`string`, `string`>                                                                                                             | supported run-time platforms this package can run on                                                                                                                                                                                                                                            |
| `exports`?              | [`Exports`](https://docs.vlt.io/client/api-reference/types/reference.md#exports)                                                         | named subpath exports                                                                                                                                                                                                                                                                           |
| `funding`?              | [`Funding`](https://docs.vlt.io/client/api-reference/types/reference.md#funding)                                                         | URLs that can be visited to fund this project                                                                                                                                                                                                                                                   |
| `gitHead`?              | `string`                                                                                                                                 | the HEAD of the git repo this was published from only present in published packages                                                                                                                                                                                                             |
| `gypfile`?              | `boolean`                                                                                                                                | npm puts this on published manifests                                                                                                                                                                                                                                                            |
| `hasInstallScript`?     | `boolean`                                                                                                                                | Set in place of `scripts` by abbreviated registry manifests (npm's `application/vnd.npm.install-v1+json` and vlt's `application/vnd.vlt.packument-v1+json` and `application/vnd.vlt.packument-v2+json`) when the package has an install, preinstall, or postinstall script.                     |
| `homepage`?             | `string`                                                                                                                                 | The homepage of the repository                                                                                                                                                                                                                                                                  |
| `imports`?              | [`Imports`](https://docs.vlt.io/client/api-reference/types/reference.md#imports)                                                         | named #identifier imports                                                                                                                                                                                                                                                                       |
| `keywords`?             | [`Keywords`](https://docs.vlt.io/client/api-reference/types/reference.md#keywords)                                                       | search keywords                                                                                                                                                                                                                                                                                 |
| `libc`?                 | `string`\[] \| `string`                                                                                                                  | supported libc implementations this package can run on (e.g. glibc, musl)                                                                                                                                                                                                                       |
| `license`?              | `string`                                                                                                                                 | the license of the package                                                                                                                                                                                                                                                                      |
| `main`?                 | `string`                                                                                                                                 | the main module, if exports\['.'] is not set                                                                                                                                                                                                                                                    |
| `name`?                 | `string`                                                                                                                                 | The name of the package. optional because {} is a valid package.json                                                                                                                                                                                                                            |
| `optionalDependencies`? | `Record`<`string`, `string`>                                                                                                             | optional dependencies, name:specifier                                                                                                                                                                                                                                                           |
| `os`?                   | `string`\[] \| `string`                                                                                                                  | supported operating systems this package can run on                                                                                                                                                                                                                                             |
| `peerDependencies`?     | `Record`<`string`, `string`>                                                                                                             | peer dependencies, name:specifier                                                                                                                                                                                                                                                               |
| `peerDependenciesMeta`? | `Record`<`string`, [`PeerDependenciesMetaValue`](https://docs.vlt.io/client/api-reference/types/reference.md#peerdependenciesmetavalue)> | peer dependencies marked as optional                                                                                                                                                                                                                                                            |
| `private`?              | `boolean`                                                                                                                                | whether the package is private                                                                                                                                                                                                                                                                  |
| `repository`?           | [`Repository`](https://docs.vlt.io/client/api-reference/types/reference.md#repository-1)                                                 | where the development happens                                                                                                                                                                                                                                                                   |
| `scripts`?              | `Record`<`string`, `string`>                                                                                                             | run-script actions for this package                                                                                                                                                                                                                                                             |
| `type`?                 | `"commonjs"` \| `"module"`                                                                                                               | whether this is ESM or CommonJS by default                                                                                                                                                                                                                                                      |
| `version`?              | `string`                                                                                                                                 | The version of the package. optional because {} is a valid package.json                                                                                                                                                                                                                         |
| `workspaces`?           | \| `string`\[] \| { `nohoist`: `string`\[]; `packages`: `string`\[] \| `string`; } \| `string`                                           | npm/yarn-style workspace globs. Honored by vlt as a fallback when `vlt.json` has no `workspaces` field of its own. Only the npm (`string[]`) and yarn-classic (`{packages}`) forms are accepted; vlt's named workspace groups are a `vlt.json` feature. yarn's `nohoist` is parsed and ignored. |

---

### ManifestRegistry

```ts
type ManifestRegistry = Manifest & Required<Pick<Manifest, "name" | "version" | "dist">> & object;
```

Defined in: index.ts:981

A specific type of [Manifest](https://docs.vlt.io/client/api-reference/types/reference.md#manifest) that represents manifests that were retrieved from a registry, these will always have `name`, `version` and `dist` information along with an optional `maintainers` field.

#### Type declaration

| Name           | Type      |
| -------------- | --------- |
| `maintainers`? | `unknown` |

---

### NodeLike

```ts
type NodeLike = object;
```

Defined in: index.ts:1717

#### Type declaration

| Name                         | Type                                                                                                                                                                                                                                                                                                                                                                                         | Description                                                                                                                                                                                                                                                                                                     |
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `bins`?                      | `Record`<`string`, `string`>                                                                                                                                                                                                                                                                                                                                                                 | -                                                                                                                                                                                                                                                                                                               |
| `brotli`?                    | `boolean`                                                                                                                                                                                                                                                                                                                                                                                    | This node's artifact is the registry's Brotli (`.tar.br`) tarball rather than the gzip `.tgz`, so `resolved` and `integrity` both describe that artifact. Persisted in the lockfile as a flag bit, which is what lets `setResolved()` rebuild the `.tar.br` URL for a node whose `resolved` is not written out. |
| `buildAllowed`?              | `boolean`                                                                                                                                                                                                                                                                                                                                                                                    | -                                                                                                                                                                                                                                                                                                               |
| `buildBlocked`?              | `boolean`                                                                                                                                                                                                                                                                                                                                                                                    | -                                                                                                                                                                                                                                                                                                               |
| `buildState`?                | `"none"` \| `"needed"` \| `"built"` \| `"failed"`                                                                                                                                                                                                                                                                                                                                            | -                                                                                                                                                                                                                                                                                                               |
| `confused`                   | `boolean`                                                                                                                                                                                                                                                                                                                                                                                    | -                                                                                                                                                                                                                                                                                                               |
| `dev`                        | `boolean`                                                                                                                                                                                                                                                                                                                                                                                    | -                                                                                                                                                                                                                                                                                                               |
| `edgesIn`                    | `Set`<[`EdgeLike`](https://docs.vlt.io/client/api-reference/types/reference.md#edgelike)>                                                                                                                                                                                                                                                                                                    | -                                                                                                                                                                                                                                                                                                               |
| `edgesOut`                   | `Map`<`string`, [`EdgeLike`](https://docs.vlt.io/client/api-reference/types/reference.md#edgelike)>                                                                                                                                                                                                                                                                                          | -                                                                                                                                                                                                                                                                                                               |
| `graph`                      | [`GraphLike`](https://docs.vlt.io/client/api-reference/types/reference.md#graphlike)                                                                                                                                                                                                                                                                                                         | -                                                                                                                                                                                                                                                                                                               |
| `id`                         | [`DepID`](https://docs.vlt.io/client/api-reference/dep-id/browser.md#depid)                                                                                                                                                                                                                                                                                                                  | -                                                                                                                                                                                                                                                                                                               |
| `importer`                   | `boolean`                                                                                                                                                                                                                                                                                                                                                                                    | -                                                                                                                                                                                                                                                                                                               |
| `integrity`?                 | `string` \| `null`                                                                                                                                                                                                                                                                                                                                                                           | -                                                                                                                                                                                                                                                                                                               |
| `location`?                  | `string`                                                                                                                                                                                                                                                                                                                                                                                     | -                                                                                                                                                                                                                                                                                                               |
| `mainImporter`               | `boolean`                                                                                                                                                                                                                                                                                                                                                                                    | -                                                                                                                                                                                                                                                                                                               |
| `manifest`?                  | [`NormalizedManifest`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedmanifest) \| `null`                                                                                                                                                                                                                                                                             | -                                                                                                                                                                                                                                                                                                               |
| `modifier`?                  | `string`                                                                                                                                                                                                                                                                                                                                                                                     | -                                                                                                                                                                                                                                                                                                               |
| `name`?                      | `string` \| `null`                                                                                                                                                                                                                                                                                                                                                                           | -                                                                                                                                                                                                                                                                                                               |
| `optional`                   | `boolean`                                                                                                                                                                                                                                                                                                                                                                                    | -                                                                                                                                                                                                                                                                                                               |
| `options`                    | [`SpecOptions`](https://docs.vlt.io/client/api-reference/spec/module_index.md#specoptions)                                                                                                                                                                                                                                                                                                   | -                                                                                                                                                                                                                                                                                                               |
| `peerSetHash`?               | `string`                                                                                                                                                                                                                                                                                                                                                                                     | -                                                                                                                                                                                                                                                                                                               |
| `platform`?                  | `object`                                                                                                                                                                                                                                                                                                                                                                                     | -                                                                                                                                                                                                                                                                                                               |
| `platform.cpu`?              | `string`\[] \| `string`                                                                                                                                                                                                                                                                                                                                                                      | -                                                                                                                                                                                                                                                                                                               |
| `platform.engines`?          | `Record`<`string`, `string`>                                                                                                                                                                                                                                                                                                                                                                 | -                                                                                                                                                                                                                                                                                                               |
| `platform.libc`?             | `string`\[] \| `string`                                                                                                                                                                                                                                                                                                                                                                      | -                                                                                                                                                                                                                                                                                                               |
| `platform.os`?               | `string`\[] \| `string`                                                                                                                                                                                                                                                                                                                                                                      | -                                                                                                                                                                                                                                                                                                               |
| `projectRoot`                | `string`                                                                                                                                                                                                                                                                                                                                                                                     | -                                                                                                                                                                                                                                                                                                               |
| `rawManifest`?               | [`NormalizedManifest`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedmanifest) \| `null`                                                                                                                                                                                                                                                                             | -                                                                                                                                                                                                                                                                                                               |
| `resolved`?                  | `string` \| `null`                                                                                                                                                                                                                                                                                                                                                                           | -                                                                                                                                                                                                                                                                                                               |
| `resolvedFromLockfile`?      | `boolean`                                                                                                                                                                                                                                                                                                                                                                                    | -                                                                                                                                                                                                                                                                                                               |
| `toJSON`                     | () => `Pick`<[`NodeLike`](https://docs.vlt.io/client/api-reference/types/reference.md#nodelike), \| `"id"` \| `"name"` \| `"version"` \| `"location"` \| `"importer"` \| `"manifest"` \| `"projectRoot"` \| `"integrity"` \| `"resolved"` \| `"dev"` \| `"optional"` \| `"confused"` \| `"platform"` \| `"buildState"` \| `"buildAllowed"` \| `"buildBlocked"` \| `"typeTarget"`> & `object` | -                                                                                                                                                                                                                                                                                                               |
| `typeTarget`?                | `string`                                                                                                                                                                                                                                                                                                                                                                                     | package this node provides type definitions for.                                                                                                                                                                                                                                                                |
| `version`?                   | `string` \| `null`                                                                                                                                                                                                                                                                                                                                                                           | -                                                                                                                                                                                                                                                                                                               |
| `workspaces`                 | `Map`<`string`, [`EdgeLike`](https://docs.vlt.io/client/api-reference/types/reference.md#edgelike)> \| `undefined`                                                                                                                                                                                                                                                                           | -                                                                                                                                                                                                                                                                                                               |
| `maybeSetConfusedManifest()` | `void`                                                                                                                                                                                                                                                                                                                                                                                       | -                                                                                                                                                                                                                                                                                                               |
| `setConfusedManifest()`      | `void`                                                                                                                                                                                                                                                                                                                                                                                       | -                                                                                                                                                                                                                                                                                                               |
| `setResolved()`              | `void`                                                                                                                                                                                                                                                                                                                                                                                       | -                                                                                                                                                                                                                                                                                                               |
| `toString()`                 | `string`                                                                                                                                                                                                                                                                                                                                                                                     | -                                                                                                                                                                                                                                                                                                               |

---

### NormalizedBin

```ts
type NormalizedBin = Record<string, string>;
```

Defined in: index.ts:486

Normalized bin - always a record of string to string

---

### NormalizedBugs

```ts
type NormalizedBugs = NormalizedBugsEntry[];
```

Defined in: index.ts:481

Normalized bugs - always an array of [NormalizedBugsEntry](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedbugsentry)

---

### NormalizedBugsEntry

```ts
type NormalizedBugsEntry = object;
```

Defined in: index.ts:447

Normalized bugs entry - always an object with type and url/email

#### Type declaration

| Name     | Type                  |
| -------- | --------------------- |
| `email`? | `string`              |
| `type`?  | `"email"` \| `"link"` |
| `url`?   | `string`              |

---

### NormalizedContributorEntry

```ts
type NormalizedContributorEntry = object;
```

Defined in: index.ts:314

Represents a normalized contributor object. This is the type that is used in the [NormalizedManifest](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedmanifest) and [NormalizedManifestRegistry](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedmanifestregistry) objects.

#### Type declaration

| Name              | Type      |
| ----------------- | --------- |
| `[kIsPublisher]`? | `boolean` |
| `[kWriteAccess]`? | `boolean` |
| `email`?          | `string`  |
| `isPublisher`?    | `boolean` |
| `name`?           | `string`  |
| `url`?            | `string`  |
| `writeAccess`?    | `boolean` |

---

### NormalizedContributors

```ts
type NormalizedContributors = NormalizedContributorEntry[];
```

Defined in: index.ts:307

Normalized contributors - always an array of [NormalizedContributorEntry](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedcontributorentry).

---

### NormalizedCpu

```ts
type NormalizedCpu = string[];
```

Defined in: index.ts:471

Normalized CPU list - always an array of strings

---

### NormalizedEngines

```ts
type NormalizedEngines = Record<string, string>;
```

Defined in: index.ts:461

Normalized engines - always a record of string to string

---

### NormalizedFields

```ts
type NormalizedFields = object;
```

Defined in: index.ts:950

#### Type declaration

| Name           | Type                                                                                                                                     |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `author`       | \| [`NormalizedContributorEntry`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedcontributorentry) \| `undefined` |
| `bin`          | [`NormalizedBin`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedbin) \| `undefined`                              |
| `bugs`         | [`NormalizedBugs`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedbugs) \| `undefined`                            |
| `contributors` | \| [`NormalizedContributors`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedcontributors) \| `undefined`         |
| `cpu`          | [`NormalizedCpu`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedcpu) \| `undefined`                              |
| `engines`      | [`NormalizedEngines`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedengines) \| `undefined`                      |
| `funding`      | [`NormalizedFunding`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedfunding) \| `undefined`                      |
| `keywords`     | [`NormalizedKeywords`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedkeywords) \| `undefined`                    |
| `libc`         | [`NormalizedLibc`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedlibc) \| `undefined`                            |
| `os`           | [`NormalizedOs`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedos) \| `undefined`                                |

---

### NormalizedFunding

```ts
type NormalizedFunding = NormalizedFundingEntry[];
```

Defined in: index.ts:116

Normalized funding information, an array of [NormalizedFundingEntry](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedfundingentry).

---

### NormalizedFundingEntry

```ts
type NormalizedFundingEntry = object;
```

Defined in: index.ts:107

An object with url and optional additional properties

#### Type declaration

#### Index Signature

```ts
[key: string]: JSONField
```

| Name    | Type     |
| ------- | -------- |
| `type`? | `string` |
| `url`   | `string` |

---

### NormalizedKeywords

```ts
type NormalizedKeywords = string[];
```

Defined in: index.ts:456

Normalized keywords - always an array of strings

---

### NormalizedLibc

```ts
type NormalizedLibc = string[];
```

Defined in: index.ts:476

Normalized libc list - always an array of strings

---

### NormalizedManifest

```ts
type NormalizedManifest = Override<Manifest, NormalizedFields>;
```

Defined in: index.ts:966

A [Manifest](https://docs.vlt.io/client/api-reference/types/reference.md#manifest) object that contains normalized fields.

---

### NormalizedManifestRegistry

```ts
type NormalizedManifestRegistry = Override<ManifestRegistry, NormalizedFields>;
```

Defined in: index.ts:971

A [ManifestRegistry](https://docs.vlt.io/client/api-reference/types/reference.md#manifestregistry) object that contains normalized fields.

---

### NormalizedOs

```ts
type NormalizedOs = string[];
```

Defined in: index.ts:466

Normalized OS list - always an array of strings

---

### Override\<T, R>

```ts
type Override<T, R> = { [K in keyof T]: K extends keyof R ? R[K] : T[K] };
```

Defined in: index.ts:18

Utility type that overrides specific properties of type T with new types from R. Constrains override values to exclude undefined, ensuring that normalization cannot introduce undefined to fields that shouldn't have it.

#### Type Parameters

| Type Parameter                                                            |
| ------------------------------------------------------------------------- |
| `T`                                                                       |
| `R` _extends_ `{ [K in keyof R]: R[K] extends undefined ? never : R[K] }` |

---

### Packument

```ts
type Packument = object;
```

Defined in: index.ts:1000

A document that represents available package versions in a given registry along with extra information, such as `dist-tags` and `maintainers` info. The `versions` field is key-value structure in which keys are the available versions of a given package and values are [ManifestRegistry](https://docs.vlt.io/client/api-reference/types/reference.md#manifestregistry) objects.

#### Type declaration

| Name            | Type                                                                                                   |
| --------------- | ------------------------------------------------------------------------------------------------------ |
| `contributors`? | [`Person`](https://docs.vlt.io/client/api-reference/types/reference.md#person)\[]                      |
| `dist-tags`     | `Record`<`string`, `string`>                                                                           |
| `maintainers`?  | [`Person`](https://docs.vlt.io/client/api-reference/types/reference.md#person)\[]                      |
| `modified`?     | `string`                                                                                               |
| `name`          | `string`                                                                                               |
| `readme`?       | `string`                                                                                               |
| `time`?         | `Record`<`string`, `string`>                                                                           |
| `versions`      | `Record`<`string`, [`Manifest`](https://docs.vlt.io/client/api-reference/types/reference.md#manifest)> |

---

### PeerDependenciesMetaValue

```ts
type PeerDependenciesMetaValue = object;
```

Defined in: index.ts:78

An object used to mark some peerDeps as optional

#### Type declaration

| Name        | Type      |
| ----------- | --------- |
| `optional`? | `boolean` |

---

### Person

```ts
type Person = 
  | string
  | {
  email: string;
  name: string;
  url: string;
};
```

Defined in: index.ts:420

---

### RefType

```ts
type RefType = "branch" | "head" | "other" | "pull" | "tag";
```

Defined in: index.ts:1011

---

### Repository

```ts
type Repository = 
  | string
  | {
  type: string;
  url: string;
};
```

Defined in: index.ts:428

---

### RevDoc

```ts
type RevDoc = Omit<Packument, "versions"> & object;
```

Defined in: index.ts:1031

An object kind of resembling a packument, but about a git repo.

#### Type declaration

| Name       | Type                                                                                                         | Description                                       |
| ---------- | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------- |
| `refs`     | `Record`<`string`, [`RevDocEntry`](https://docs.vlt.io/client/api-reference/types/reference.md#revdocentry)> | all named things that can be cloned down remotely |
| `shas`     | `Record`<`string`, `string`\[]>                                                                              | all named shas referenced above                   |
| `versions` | `Record`<`string`, [`RevDocEntry`](https://docs.vlt.io/client/api-reference/types/reference.md#revdocentry)> | all semver-looking tags go in this record         |

---

### RevDocEntry

```ts
type RevDocEntry = Omit<Manifest, "type"> & Required<Pick<Manifest, "version">> & object;
```

Defined in: index.ts:1016

A representation of a given remote ref in a [RevDoc](https://docs.vlt.io/client/api-reference/types/reference.md#revdoc) object.

#### Type declaration

| Name     | Type                                                                             | Description                                     |
| -------- | -------------------------------------------------------------------------------- | ----------------------------------------------- |
| `rawRef` | `string`                                                                         | canonical full ref, like `refs/tags/blahblah`   |
| `ref`    | `string`                                                                         | ref as passed git locally                       |
| `sha`    | `string`                                                                         | sha this references                             |
| `type`   | [`RefType`](https://docs.vlt.io/client/api-reference/types/reference.md#reftype) | what type of ref this is: 'branch', 'tag', etc. |

---

### SomeNormalizedManifest\<T>

```ts
type SomeNormalizedManifest<T> = T extends ManifestRegistry ? NormalizedManifestRegistry : NormalizedManifest;
```

Defined in: index.ts:989

Maps the manifest type to the equivalent normalized manifest type.

#### Type Parameters

| Type Parameter |
| -------------- |
| `T`            |

---

### TarballFormat

```ts
type TarballFormat = "gzip" | "brotli";
```

Defined in: index.ts:1085

How a tarball's bytes are compressed. `gzip` is sniffed from the two magic bytes (the `.tgz` and raw-tar cases), so it never has to be passed. Brotli has no magic-byte signature, so a `.tar.br` MUST be declared by the caller -- it can never be detected from the bytes.

## Variables

### BROTLI_TARBALL_EXT

```ts
const BROTLI_TARBALL_EXT: ".tar.br" = '.tar.br';
```

Defined in: index.ts:1088

Filename extension of a Brotli-recompressed tarball.

---

### dependencyTypes

```ts
const dependencyTypes: Map<DependencyTypeLong, DependencyTypeShort>;
```

Defined in: index.ts:1669

Maps between long form names usually used in `package.json` files to a corresponding short form name, used in lockfiles.

---

### integrityRE

```ts
const integrityRE: RegExp;
```

Defined in: index.ts:1046

---

### keyIDRE

```ts
const keyIDRE: RegExp;
```

Defined in: index.ts:1168

---

### longDependencyTypes

```ts
const longDependencyTypes: Set<DependencyTypeLong>;
```

Defined in: index.ts:1647

A set of the possible long dependency type names, as used in `package.json` files.

---

### shortDependencyTypes

```ts
const shortDependencyTypes: Set<DependencyTypeShort>;
```

Defined in: index.ts:1657

A set of the short type keys used to represent dependency relationships.

## Functions

### asError()

```ts
function asError(er, fallbackMessage): Error
```

Defined in: index.ts:1193

Convert an unknown value to an error.

#### Parameters

| Parameter         | Type      | Default value     |
| ----------------- | --------- | ----------------- |
| `er`              | `unknown` | `undefined`       |
| `fallbackMessage` | `string`  | `'Unknown error'` |

#### Returns

`Error`

---

### asIntegrity()

```ts
function asIntegrity(i): `sha512-${string}`
```

Defined in: index.ts:1050

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `i`       | `unknown` |

#### Returns

`` `sha512-${string}` ``

---

### asKeyID()

```ts
function asKeyID(k): `SHA256:${string}`
```

Defined in: index.ts:1172

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `k`       | `unknown` |

#### Returns

`` `SHA256:${string}` ``

---

### asManifest()

```ts
function asManifest(m, from?): Manifest
```

Defined in: index.ts:1324

Given an unknown value, convert it to a [Manifest](https://docs.vlt.io/client/api-reference/types/reference.md#manifest).

#### Parameters

| Parameter | Type              |
| --------- | ----------------- |
| `m`       | `unknown`         |
| `from`?   | (...`a`) => `any` |

#### Returns

[`Manifest`](https://docs.vlt.io/client/api-reference/types/reference.md#manifest)

---

### asManifestRegistry()

```ts
function asManifestRegistry(m, from?): ManifestRegistry
```

Defined in: index.ts:1499

Given an unknown value, convert it to a [ManifestRegistry](https://docs.vlt.io/client/api-reference/types/reference.md#manifestregistry).

#### Parameters

| Parameter | Type              |
| --------- | ----------------- |
| `m`       | `unknown`         |
| `from`?   | (...`a`) => `any` |

#### Returns

[`ManifestRegistry`](https://docs.vlt.io/client/api-reference/types/reference.md#manifestregistry)

---

### asNormalizedManifest()

```ts
function asNormalizedManifest(m, from?): Override
```

Defined in: index.ts:1482

Given an unknown value, convert it to a [NormalizedManifest](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedmanifest).

#### Parameters

| Parameter | Type              |
| --------- | ----------------- |
| `m`       | `unknown`         |
| `from`?   | (...`a`) => `any` |

#### Returns

[`Override`](https://docs.vlt.io/client/api-reference/types/reference.md#overridet-r)

---

### asNormalizedManifestRegistry()

```ts
function asNormalizedManifestRegistry(m, from?): Override
```

Defined in: index.ts:1525

Given an unknown value, convert it to a [NormalizedManifestRegistry](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedmanifestregistry).

#### Parameters

| Parameter | Type              |
| --------- | ----------------- |
| `m`       | `unknown`         |
| `from`?   | (...`a`) => `any` |

#### Returns

[`Override`](https://docs.vlt.io/client/api-reference/types/reference.md#overridet-r)

---

### asPackument()

```ts
function asPackument(p, from?): Packument
```

Defined in: index.ts:1597

#### Parameters

| Parameter | Type              |
| --------- | ----------------- |
| `p`       | `unknown`         |
| `from`?   | (...`a`) => `any` |

#### Returns

[`Packument`](https://docs.vlt.io/client/api-reference/types/reference.md#packument)

---

### assertIntegrity()

```ts
function assertIntegrity(i): asserts i is `sha512-${string}`
```

Defined in: index.ts:1064

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `i`       | `unknown` |

#### Returns

`` asserts i is `sha512-${string}` ``

---

### assertKeyID()

```ts
function assertKeyID(k): asserts k is `SHA256:${string}`
```

Defined in: index.ts:1186

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `k`       | `unknown` |

#### Returns

`` asserts k is `SHA256:${string}` ``

---

### assertManifest()

```ts
function assertManifest(m): asserts m is Manifest
```

Defined in: index.ts:1575

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `m`       | `unknown` |

#### Returns

`asserts m is Manifest`

---

### assertManifestRegistry()

```ts
function assertManifestRegistry(m): asserts m is ManifestRegistry
```

Defined in: index.ts:1580

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `m`       | `unknown` |

#### Returns

`asserts m is ManifestRegistry`

---

### assertPackument()

```ts
function assertPackument(m): asserts m is Packument
```

Defined in: index.ts:1611

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `m`       | `unknown` |

#### Returns

`asserts m is Packument`

---

### assertRecordStringString()

```ts
function assertRecordStringString(o): void
```

Defined in: index.ts:1231

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `o`       | `unknown` |

#### Returns

`void`

---

### assertRecordStringT()

```ts
function assertRecordStringT<T>(
   o, 
   check, 
   wanted): asserts o is Record<string, T>
```

Defined in: index.ts:1249

#### Type Parameters

| Type Parameter |
| -------------- |
| `T`            |

#### Parameters

| Parameter | Type              |
| --------- | ----------------- |
| `o`       | `unknown`         |
| `check`   | (`o`) => `o is T` |
| `wanted`  | `string`          |

#### Returns

`asserts o is Record<string, T>`

---

### brotliTarballName()

```ts
function brotliTarballName(tgz): string
```

Defined in: index.ts:1112

`https://…/foo-1.2.3.tgz` -> `https://…/foo-1.2.3.tar.br`: the name a registry gives a version's Brotli alternate, same stem as the `.tgz` and a different extension.

#### Parameters

| Parameter | Type     |
| --------- | -------- |
| `tgz`     | `string` |

#### Returns

`string`

---

### brotliTarballUrl()

```ts
function brotliTarballUrl(tarball, alternates): undefined | BrotliAlternate
```

Defined in: index.ts:1139

#### Parameters

| Parameter    | Type                       |
| ------------ | -------------------------- |
| `tarball`    | `undefined` \| `string`    |
| `alternates` | `undefined` \| `object`\[] |

#### Returns

`undefined` | [`BrotliAlternate`](https://docs.vlt.io/client/api-reference/types/reference.md#brotlialternate)

---

### expandNormalizedManifestSymbols()

```ts
function expandNormalizedManifestSymbols(m): Override
```

Defined in: index.ts:1557

Walks a normalized manifest and expands any symbols found in the `author` and `contributors` fields.

#### Parameters

| Parameter | Type                                                                                  |
| --------- | ------------------------------------------------------------------------------------- |
| `m`       | [`Override`](https://docs.vlt.io/client/api-reference/types/reference.md#overridet-r) |

#### Returns

[`Override`](https://docs.vlt.io/client/api-reference/types/reference.md#overridet-r)

---

### fixManifestVersion()

```ts
function fixManifestVersion<T>(manifest): T
```

Defined in: index.ts:230

Given a version Normalize the version field in a manifest.

#### Type Parameters

| Type Parameter                                                                                                                                                                                            |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `T` _extends_ \| [`Manifest`](https://docs.vlt.io/client/api-reference/types/reference.md#manifest) \| [`ManifestRegistry`](https://docs.vlt.io/client/api-reference/types/reference.md#manifestregistry) |

#### Parameters

| Parameter  | Type |
| ---------- | ---- |
| `manifest` | `T`  |

#### Returns

`T`

---

### getTypeTarget()

```ts
function getTypeTarget(name): undefined | string
```

Defined in: type-target.ts:2

maps @types/foo to foo and @types/scope__name to @scope/name.

#### Parameters

| Parameter | Type                              |
| --------- | --------------------------------- |
| `name`    | `undefined` \| `null` \| `string` |

#### Returns

`undefined` | `string`

---

### integrityHex()

```ts
function integrityHex(i): undefined | string
```

Defined in: index.ts:1074

Hex form of a sha512 integrity digest, or undefined if not a valid sha512 integrity. Names tarball cache and global store entries.

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `i`       | `unknown` |

#### Returns

`undefined` | `string`

---

### isBoolean()

```ts
function isBoolean(value): value is boolean
```

Defined in: index.ts:1043

A type guard to check if a value is a boolean.

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `value`   | `unknown` |

#### Returns

`value is boolean`

---

### isError()

```ts
function isError(er): er is Error
```

Defined in: index.ts:1202

Check if a value is an error.

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `er`      | `unknown` |

#### Returns

`er is Error`

---

### isErrorWithCause()

```ts
function isErrorWithCause(er): er is Error & { cause: unknown }
```

Defined in: index.ts:1208

Check if an error has a cause property.

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `er`      | `unknown` |

#### Returns

`er is Error & { cause: unknown }`

---

### isIntegrity()

```ts
function isIntegrity(i): i is `sha512-${string}`
```

Defined in: index.ts:1047

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `i`       | `unknown` |

#### Returns

`` i is `sha512-${string}` ``

---

### isKeyID()

```ts
function isKeyID(k): k is `SHA256:${string}`
```

Defined in: index.ts:1169

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `k`       | `unknown` |

#### Returns

`` k is `SHA256:${string}` ``

---

### isManifest()

```ts
function isManifest(m): m is Manifest
```

Defined in: index.ts:1298

Is a given unknown value a valid [Manifest](https://docs.vlt.io/client/api-reference/types/reference.md#manifest) object? Returns `true` if so.

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `m`       | `unknown` |

#### Returns

`m is Manifest`

---

### isManifestRegistry()

```ts
function isManifestRegistry(m): m is ManifestRegistry
```

Defined in: index.ts:1316

A specific [Manifest](https://docs.vlt.io/client/api-reference/types/reference.md#manifest) that is retrieved uniquely from reading registry packument and manifest endpoints, it has `dist`, `name` and `version` fields defined.

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `m`       | `unknown` |

#### Returns

`m is ManifestRegistry`

---

### isNormalizedBugs()

```ts
function isNormalizedBugs(o): o is NormalizedBugs
```

Defined in: index.ts:571

Type guard to check if a value is a [NormalizedBugs](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedbugs).

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `o`       | `unknown` |

#### Returns

`o is NormalizedBugs`

---

### isNormalizedBugsEntry()

```ts
function isNormalizedBugsEntry(o): o is NormalizedBugsEntry
```

Defined in: index.ts:555

Type guard to check if a value is a [NormalizedBugsEntry](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedbugsentry).

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `o`       | `unknown` |

#### Returns

`o is NormalizedBugsEntry`

---

### isNormalizedContributorEntry()

```ts
function isNormalizedContributorEntry(o): o is NormalizedContributorEntry
```

Defined in: index.ts:331

Type guard to check if a value is a normalized contributor entry.

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `o`       | `unknown` |

#### Returns

`o is NormalizedContributorEntry`

---

### isNormalizedContributors()

```ts
function isNormalizedContributors(o): o is NormalizedContributors
```

Defined in: index.ts:355

Type guard to check if a value is a [NormalizedContributors](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedcontributors).

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `o`       | `unknown` |

#### Returns

`o is NormalizedContributors`

---

### isNormalizedCpu()

```ts
function isNormalizedCpu(o): o is NormalizedCpu
```

Defined in: index.ts:771

Type guard to check if a value is a [NormalizedCpu](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedcpu).

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `o`       | `unknown` |

#### Returns

`o is NormalizedCpu`

---

### isNormalizedEngines()

```ts
function isNormalizedEngines(o): o is NormalizedEngines
```

Defined in: index.ts:745

Type guard to check if a value is a [NormalizedEngines](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedengines).

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `o`       | `unknown` |

#### Returns

`o is NormalizedEngines`

---

### isNormalizedFunding()

```ts
function isNormalizedFunding(o): o is NormalizedFunding
```

Defined in: index.ts:217

Type guard to check if a value is a [NormalizedFunding](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedfunding).

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `o`       | `unknown` |

#### Returns

`o is NormalizedFunding`

---

### isNormalizedFundingEntry()

```ts
function isNormalizedFundingEntry(o): o is NormalizedFundingEntry
```

Defined in: index.ts:198

Type guard to check if a value is a [NormalizedFundingEntry](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedfundingentry).

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `o`       | `unknown` |

#### Returns

`o is NormalizedFundingEntry`

---

### isNormalizedKeywords()

```ts
function isNormalizedKeywords(o): o is NormalizedKeywords
```

Defined in: index.ts:616

Type guard to check if a value is a [NormalizedKeywords](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedkeywords).

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `o`       | `unknown` |

#### Returns

`o is NormalizedKeywords`

---

### isNormalizedLibc()

```ts
function isNormalizedLibc(o): o is NormalizedLibc
```

Defined in: index.ts:788

Type guard to check if a value is a [NormalizedLibc](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedlibc).

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `o`       | `unknown` |

#### Returns

`o is NormalizedLibc`

---

### isNormalizedManifest()

```ts
function isNormalizedManifest(o): o is Override<Manifest, NormalizedFields>
```

Defined in: index.ts:1458

Type guard to check if a value is a [NormalizedManifest](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedmanifest).

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `o`       | `unknown` |

#### Returns

`o is Override<Manifest, NormalizedFields>`

---

### isNormalizedManifestRegistry()

```ts
function isNormalizedManifestRegistry(o): o is Override<ManifestRegistry, NormalizedFields>
```

Defined in: index.ts:1516

Type guard to check if a value is a [NormalizedManifestRegistry](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedmanifestregistry).

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `o`       | `unknown` |

#### Returns

`o is Override<ManifestRegistry, NormalizedFields>`

---

### isNormalizedOs()

```ts
function isNormalizedOs(o): o is NormalizedOs
```

Defined in: index.ts:754

Type guard to check if a value is a [NormalizedOs](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedos).

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `o`       | `unknown` |

#### Returns

`o is NormalizedOs`

---

### isObject()

```ts
function isObject(v): v is Record<string, unknown>
```

Defined in: index.ts:1215

Check if an unknown value is a plain object.

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `v`       | `unknown` |

#### Returns

`v is Record<string, unknown>`

---

### isPackument()

```ts
function isPackument(p): p is Packument
```

Defined in: index.ts:1586

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `p`       | `unknown` |

#### Returns

`p is Packument`

---

### isPeerDependenciesMetaValue()

```ts
function isPeerDependenciesMetaValue(o): o is PeerDependenciesMetaValue
```

Defined in: index.ts:1283

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `o`       | `unknown` |

#### Returns

`o is PeerDependenciesMetaValue`

---

### isRecordStringManifest()

```ts
function isRecordStringManifest(o): o is Record<string, Manifest>
```

Defined in: index.ts:1267

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `o`       | `unknown` |

#### Returns

`o is Record<string, Manifest>`

---

### isRecordStringString()

```ts
function isRecordStringString(o): o is Record<string, string>
```

Defined in: index.ts:1226

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `o`       | `unknown` |

#### Returns

`o is Record<string, string>`

---

### isRecordStringT()

```ts
function isRecordStringT<T>(o, check): o is Record<string, T>
```

Defined in: index.ts:1240

#### Type Parameters

| Type Parameter |
| -------------- |
| `T`            |

#### Parameters

| Parameter | Type              |
| --------- | ----------------- |
| `o`       | `unknown`         |
| `check`   | (`o`) => `o is T` |

#### Returns

`o is Record<string, T>`

---

### maybeBoolean()

```ts
function maybeBoolean(o): o is boolean
```

Defined in: index.ts:1280

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `o`       | `unknown` |

#### Returns

`o is boolean`

---

### maybeDist()

```ts
function maybeDist(a): a is undefined | Dist
```

Defined in: index.ts:1291

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `a`       | `unknown` |

#### Returns

a is undefined | Dist

---

### maybePeerDependenciesMetaSet()

```ts
function maybePeerDependenciesMetaSet(o): o is undefined | Record<string, PeerDependenciesMetaValue>
```

Defined in: index.ts:1272

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `o`       | `unknown` |

#### Returns

o is undefined | Record\<string, PeerDependenciesMetaValue>

---

### maybeRecordStringString()

```ts
function maybeRecordStringString(o): o is undefined | Record<string, string>
```

Defined in: index.ts:1221

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `o`       | `unknown` |

#### Returns

o is undefined | Record\<string, string>

---

### maybeString()

```ts
function maybeString(a): a is undefined | string
```

Defined in: index.ts:1288

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `a`       | `unknown` |

#### Returns

a is undefined | string

---

### normalizeBinPaths()

```ts
function normalizeBinPaths(manifest): undefined | Record<string, string>
```

Defined in: index.ts:841

Normalizes the bin paths.

#### Parameters

| Parameter  | Type                                                                                                            |
| ---------- | --------------------------------------------------------------------------------------------------------------- |
| `manifest` | `Pick`<[`Manifest`](https://docs.vlt.io/client/api-reference/types/reference.md#manifest), `"name"` \| `"bin"`> |

#### Returns

`undefined` | `Record`<`string`, `string`>

---

### normalizeBugs()

```ts
function normalizeBugs(bugs): undefined | NormalizedBugs
```

Defined in: index.ts:532

Normalize bugs information to a [NormalizedBugs](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedbugs) consistent format.

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `bugs`    | `unknown` |

#### Returns

`undefined` | [`NormalizedBugs`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedbugs)

---

### normalizeContributors()

```ts
function normalizeContributors(contributors, maintainers?): 
  | undefined
  | NormalizedContributorEntry[]
```

Defined in: index.ts:368

Normalize contributors and maintainers from various formats

#### Parameters

| Parameter      | Type      |
| -------------- | --------- |
| `contributors` | `unknown` |
| `maintainers`? | `unknown` |

#### Returns

\| `undefined` | [`NormalizedContributorEntry`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedcontributorentry)\[]

---

### normalizeCpu()

```ts
function normalizeCpu(cpu): undefined | NormalizedCpu
```

Defined in: index.ts:683

Normalize CPU information to a [NormalizedCpu](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedcpu) consistent format.

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `cpu`     | `unknown` |

#### Returns

`undefined` | [`NormalizedCpu`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedcpu)

---

### normalizeEngines()

```ts
function normalizeEngines(engines): undefined | NormalizedEngines
```

Defined in: index.ts:635

Normalize engines information to a [NormalizedEngines](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedengines) consistent format.

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `engines` | `unknown` |

#### Returns

`undefined` | [`NormalizedEngines`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedengines)

---

### normalizeFunding()

```ts
function normalizeFunding(funding): undefined | NormalizedFunding
```

Defined in: index.ts:185

Normalize funding information to a consistent format.

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `funding` | `unknown` |

#### Returns

`undefined` | [`NormalizedFunding`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedfunding)

---

### normalizeKeywords()

```ts
function normalizeKeywords(keywords): undefined | NormalizedKeywords
```

Defined in: index.ts:580

Normalize keywords information to a [NormalizedKeywords](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedkeywords) consistent format.

#### Parameters

| Parameter  | Type      |
| ---------- | --------- |
| `keywords` | `unknown` |

#### Returns

`undefined` | [`NormalizedKeywords`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedkeywords)

---

### normalizeLibc()

```ts
function normalizeLibc(libc): undefined | NormalizedLibc
```

Defined in: index.ts:714

Normalize libc information to a [NormalizedLibc](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedlibc) consistent format.

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `libc`    | `unknown` |

#### Returns

`undefined` | [`NormalizedLibc`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedlibc)

---

### normalizeManifest()

```ts
function normalizeManifest<T>(manifest, from?): SomeNormalizedManifest<T>
```

Defined in: index.ts:1344

Given a [Manifest](https://docs.vlt.io/client/api-reference/types/reference.md#manifest) returns a [NormalizedManifest](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedmanifest) that contains normalized author, bugs, funding, contributors, keywords and version fields.

#### Type Parameters

| Type Parameter                                                                                                                                                                                            |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `T` _extends_ \| [`Manifest`](https://docs.vlt.io/client/api-reference/types/reference.md#manifest) \| [`ManifestRegistry`](https://docs.vlt.io/client/api-reference/types/reference.md#manifestregistry) |

#### Parameters

| Parameter  | Type     |
| ---------- | -------- |
| `manifest` | `T`      |
| `from`?    | `string` |

#### Returns

[`SomeNormalizedManifest`](https://docs.vlt.io/client/api-reference/types/reference.md#somenormalizedmanifestt)<`T`>

---

### normalizeOs()

```ts
function normalizeOs(os): undefined | NormalizedOs
```

Defined in: index.ts:652

Normalize OS information to a [NormalizedOs](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedos) consistent format.

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `os`      | `unknown` |

#### Returns

`undefined` | [`NormalizedOs`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedos)

---

### parsePerson()

```ts
function parsePerson(
   person, 
   writeAccess?, 
   isPublisher?): 
  | undefined
  | NormalizedContributorEntry
```

Defined in: index.ts:254

Parse a string or object into a normalized contributor.

#### Parameters

| Parameter      | Type      |
| -------------- | --------- |
| `person`       | `unknown` |
| `writeAccess`? | `boolean` |
| `isPublisher`? | `boolean` |

#### Returns

\| `undefined` | [`NormalizedContributorEntry`](https://docs.vlt.io/client/api-reference/types/reference.md#normalizedcontributorentry)

---

### parseScope()

```ts
function parseScope(scoped): [undefined | string, string]
```

Defined in: index.ts:1797

Parse a scoped package name into its scope and name components.

#### Parameters

| Parameter | Type     |
| --------- | -------- |
| `scoped`  | `string` |

#### Returns

\[`undefined` | `string`, `string`]

---

### tarballFormat()

```ts
function tarballFormat(url): undefined | TarballFormat
```

Defined in: index.ts:1099

The [TarballFormat](https://docs.vlt.io/client/api-reference/types/reference.md#tarballformat) a tarball URL (or a registry-client cache key, which is the URL) names, or undefined when the bytes can be sniffed.

The extension is the only signal there is: brotli bytes are opaque, and the response carries no `Content-Encoding` (a `.tar.br` is an artifact in its own right, not a transfer encoding of the `.tgz`). Query and fragment are ignored so a signed or cache-busted URL still reads correctly.

#### Parameters

| Parameter | Type     |
| --------- | -------- |
| `url`     | `string` |

#### Returns

`undefined` | [`TarballFormat`](https://docs.vlt.io/client/api-reference/types/reference.md#tarballformat)
