CML
    Preparing search index...

    Function decodeCmcd

    • Decode a CMCD string to an object.

      Parameters

      • cmcd: string

        The CMCD string to decode.

      • options: CmcdDecodeOptions & { convertToLatest: true }

        Options for decoding.

      Returns Cmcd

      The decoded CMCD object.

      deepEqual(decodeCmcd('br=(1000),com.example-hello="world",ec=("ERR001" "ERR002"),su,v=2'), {
      br: [1000],
      'com.example-hello': 'world',
      ec: ['ERR001', 'ERR002'],
      su: true,
      v: 2,
      })
    • Decode a CMCD string to an object.

      Type Parameters

      Parameters

      • cmcd: string

        The CMCD string to decode.

      • Optionaloptions: CmcdDecodeOptions

        Options for decoding.

      Returns T

      The decoded CMCD object.

      deepEqual(decodeCmcd('br=(1000),com.example-hello="world",ec=("ERR001" "ERR002"),su,v=2'), {
      br: [1000],
      'com.example-hello': 'world',
      ec: ['ERR001', 'ERR002'],
      su: true,
      v: 2,
      })