XDR Parser introduction

XDR Parser introduction

XDR Parser is a package that pars the Envelope XDR string made by Stellar XDR package into a legible and clean JSON.
Let me show you an example:

What you give:

What you get:

To use this package, you can refer to the documents on this page
But I will explain in this article as well.
First, you must install it:

npm i xdr-parser

Then import the parse function from the package and enter the XDR into the parse function:

import { parse } from 'xdr-parser';

const obj = parse('your-xdr-here');

This package was developed by the Rabet team and is an open-sourced gift to the Stellar development community that may be able to help them in the app they build.