rss-converter

This is a converter for rss to json.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
rss-converter
2101.1.65 years ago5 years agoMinified + gzip package size for rss-converter in KB

Readme

RSS CONVERTER
This is a converter for rss to json.

!NPM Versionnpm-imagenpm-url

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: ```$json { title, ..., items:
{
  ...,
},
...
}
atom entry.link
link: 'http://~'
keyname will be changed to snake case.
':' -> '' ```

License

MIT