Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
xmlparser 是一个基于NodeJs的封装组件,主要是用来解决XML转JSON格式的问题.
安装:
$ npm install xmlparser
使用:
var xml2json = require("xmlparser"); var xml = ""; var json = xml2json.parser( xml ); console.log( json );
在原著基础上进行了优化,解决了以下问题:
1、节点中存在CDATA被过滤的问题;
2、空值被处理为对象、其余数据均为字符串的问题;
3、增加代码注释,增加代码注释,方便日后各位优化;
4、节点的多属性支持。
5、去掉了内置的DEBUG和不做节点解析的部分(对我用处不大,所以被优化掉了)。
###版权
原作者: Thomas Frank
优 化: yhostc
FAQs
an xml2json package for nodejs
The npm package xmlparser receives a total of 962 weekly downloads. As such, xmlparser popularity was classified as not popular.
We found that xmlparser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.