I've been using bodymovin-to-smil to convert bodymovin files to svgs in the browser. I couldn't get this to work with the existing xml library because it uses node streams that requires big polyfills. Given that this library doesn't use the streams I stripped it out.
I've also added prettier and editor config files to maintain consistent formatting.
Please don't feel obligated to accept this PR if you prefer to rely on the npm version of xml. It has not however been updated for 6 years and appears to be unmaintained.
I've been using bodymovin-to-smil to convert bodymovin files to svgs in the browser. I couldn't get this to work with the existing xml library because it uses node streams that requires big polyfills. Given that this library doesn't use the streams I stripped it out.
I've also added prettier and editor config files to maintain consistent formatting.
Please don't feel obligated to accept this PR if you prefer to rely on the npm version of xml. It has not however been updated for 6 years and appears to be unmaintained.