@hyrious/xml-js
v1.6.14
Published
A converter between XML text and Javascript object / JSON text.
Downloads
6
Maintainers
Readme
This fork moves "sax" to "devDependencies" and bundles it with rollup (rollup-plugin-node-polyfills).
(rollup-plugin-polyfill-node doesn't work, don't know why)
I also removed tests and coverage for faster setup. :sweat_smile:
Applied these useful forks:
- Escape
&
<
in attributes - Add nativeTypeAttributes type definition
- Handling errors with onErrorFn instead of throwing exception on first error
- ... Need more? PR on me!
Install: npm i @hyrious/xml-js
.
Replace it in package.json:
"dependencies": {
"xml-js": "npm:@hyrious/xml-js"
}
Replace it in vite.config.js:
export default defineConfig({
alias: {
"xml-js": "@hyrious/xml-js"
}
})
Replace it in webpack.config.js
{
"resolve": {
"alias": {
"xml-js": "@hyrious/xml-js"
}
}
}
Other ways: see how preact does.
Changelog
1.6.14
- Use named export, for tree shaking purpose.
Read the original README.