
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
rapid-xml-to-json
Advanced tools
Fast, dependency-free XML-parser for parsing XML structures into JSON. Optimised for speed and low memory usage.
rapid-xml-to-json is a fast, lightweight XML parser designed for simple hierarchical XML data.
This library is built for performance and simplicity. Below is a summary of what it can and cannot do:
<?...?>
), and <!DOCTYPE>
declarations.You can install the library via npm:
npm install rapid-xml-to-json
Here’s how you can use rapid-xml-to-json:
import { xlmToJson } from 'rapid-xml-to-json';
const xml = `
<root>
<item>
<![CDATA[Some content here]]>
</item>
<item>
<subitem>Another piece of content</subitem>
</item>
</root>
`;
const parsed = xmlToJson(xml);
console.log(parsed);
// Output:
// {
// root: {
// item: [
// "Some content here",
// { subitem: "Another piece of content" }
// ]
// }
// }
rapid-xml-to-json is optimized for speed and low memory usage, skipping some XML features to avoid overhead.
xmlToJson(xml: string): object
Parses a well-formed XML string into a JavaScript object.
xml
(string): The well-formed XML string to parse.Soon(tm)
Contributions are welcome! If you encounter any issues or have suggestions for improvement, feel free to open an issue or a pull request.
This library is licensed under the MIT License. See the LICENSE file for more information.
FAQs
Fast, dependency-free XML-parser for parsing XML structures into JSON. Optimised for speed and low memory usage.
The npm package rapid-xml-to-json receives a total of 3 weekly downloads. As such, rapid-xml-to-json popularity was classified as not popular.
We found that rapid-xml-to-json demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.