Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
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 6,718 weekly downloads. As such, xmlparser popularity was classified as 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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.