Decoding a LPP Packet from TTN in IoTFactory.eu

I am seeing the post Cayenne LPP Decoder in NodeJS but I don’t have an idea how to adapt it to my need.