Skip to main content
Version: v0.0.3

Variable: FIELD_NAMES

const FIELD_NAMES: ReadonlyMap<string, string>

Paraphrased names for the safety-relevant B1 field identifiers this parser surfaces, keyed by their 2-character field id. A field whose id is absent here is still preserved verbatim: absence of a name means only that the parser has not labeled it, never that the field is invalid or droppable.

Example

import { FIELD_NAMES } from "@cosyte/ncpdp/telecom";
FIELD_NAMES.get("D7"); // "Product / Service ID"
FIELD_NAMES.get("ZZ"); // undefined: unlabeled, still preserved verbatim