Scans, lexes, and parses an HLedger journal file into a 'raw' journal object format.
This method produces an ordered list of !.!JournalItems that
represents the provided ledger journal source. Order is preserved in the raw format
so that information such as default account or year directives can be preserved.
A 'raw' journal object can be translated into a 'cooked' journal object using the
rawToCookedLedger method.
Scans, lexes, and parses an HLedger journal file into a 'raw' journal object format. This method produces an ordered list of !.!JournalItems that represents the provided ledger journal source. Order is preserved in the raw format so that information such as default account or year directives can be preserved.
A 'raw' journal object can be translated into a 'cooked' journal object using the rawToCookedLedger method.
Example (ESModule)
Example (CommonJS)