@micham/iso8583
    Preparing search index...

    Function parse

    • Parse an ISO message according to the definition.

      Type Parameters

      Parameters

      • definition: MessageDefinition<FD>

        an object that will constrain the type of the fields that can be used. It will be used while parsing the buffer

      • iso: Buffer

        a buffer to the raw ISO message

      Returns Message<FD>

      a message with all the field parsed

      if the iso definition does not allow for the complete parsing of the ISO message

      const buffer = Buffer.from("0100ca......", "hex");
      const message = parse(isoDefinition, buffer);

      // All the fields are parsed here
      console.log(message.content)