New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rss-to-json

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rss-to-json - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

20

package.json
{
"name": "rss-to-json",
"version": "1.0.0",
"description": "RSS and Atom feed generator for Node.js",
"version": "1.0.1",
"description": "Rss to Json: RSS and Atom feed generator for Node.js",
"author": {

@@ -25,4 +25,18 @@ "name": "Nasa8x",

"xml2js",
"xml2json"
"xml2json",
"rss to json",
"rss2json",
"rss 2 json",
"feed-read",
"feed read",
"feed",
"feedparser",
"feed-parser",
"feed parser",
"feed-reader",
"feedreader",
"feed reader",
"rss json"
]
}

@@ -76,3 +76,13 @@ // Invoke 'strict' JavaScript mode

if(val.enclosure){
obj.enclosure = val.enclosure;
obj.enclosures = [];
if(!util.isArray(val.enclosure))
val.enclosure = [val.enclosure];
val.enclosure.forEach(function(enclosure){
var enc = {};
for (var x in enclosure) {
enc[x] = enclosure[x][0];
}
obj.enclosures.push(enc);
});
}

@@ -79,0 +89,0 @@ rss.items.push(obj);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc