API ReferenceFunctions
toStd()
@finopenpos/fiscal / toStd
function toStd(xml): Record<string, unknown>;Defined in: standardize.ts:151
Convert an NFe XML string to a normalized object (like PHP's toStd). In TypeScript this is equivalent to toArray since we don't have stdClass.
Parameters
| Parameter | Type |
|---|---|
xml | string |
Returns
Record<string, unknown>