🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

rss-converter

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rss-converter

This is a converter for rss to json.

1.1.6
latest
Source
npm
Version published
Weekly downloads
1.8K
2.82%
Maintainers
1
Weekly downloads
 
Created
Source

RSS CONVERTER

This is a converter for rss to json.

NPM Version

Install

npm i -S rss-converter

Usage

You can parse RSS from a URL (rssConverter.toJson).

NodeJS Here's an example in NodeJS using Promises with async/await:

const rssConverter = require('rss-converter');

(async () => {
    let feed = await rssConverter.toJson('https://note.mu/recommend/rss');
    console.log(feed.title);
})();

Here's response format:

{
  title,
  ...,
  items: [
    {
      ...,
    },
    ...
  ]
}

> atom entry.link
link: 'http://~'

> keyname will be changed to snake case.
':' -> '_'

License

MIT

Keywords

rss

FAQs

Package last updated on 08 Aug 2019

Did you know?

Socket

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.

Install

Related posts