@orangecheck/vault-core / fieldValue
Function: fieldValue()
function fieldValue(fields: VaultEntryFields, name: string): string | undefined;
Defined in: vault-core/src/fields.ts:121
Resolve a field of decrypted entry fields by name — case-insensitively,
and including a match against a custom[] field's label. Returns
undefined when there is no such field or its value is not a string.
Parameters
| Parameter | Type |
|---|---|
fields | VaultEntryFields |
name | string |
Returns
string | undefined