Library currently depends on reading in a file to memory and operating on the string there. This may have high memory cost associated with large ASC X12 EDI files. Adding a parser for streams based on the X12Parser.parse() method logic should be trivial, in theory.
Add a X12Parser.parseStream() method which accepts parameters of ediStream: ReadStream and options?: X12SerializationOptions. Method will return a stream which can be used to emit the different X12Segments which are found in the document.
Add a X12Parser.readStream() method which accepts contiguous X12Segments and returns an X12Interchange or X12FatInterchange.
Library currently depends on reading in a file to memory and operating on the string there. This may have high memory cost associated with large ASC X12 EDI files. Adding a parser for streams based on the
X12Parser.parse()
method logic should be trivial, in theory.Add a
X12Parser.parseStream()
method which accepts parameters ofediStream: ReadStream
andoptions?: X12SerializationOptions
. Method will return a stream which can be used to emit the differentX12Segments
which are found in the document.Add a
X12Parser.readStream()
method which accepts contiguousX12Segments
and returns anX12Interchange
orX12FatInterchange
.