lametric-rss-formatter
v1.0.0
Published
Reads RSS feed and formats it into LaMetric compatible JSON
Downloads
2
Readme
lametric-rss-formatter
Converts RSS feed into format understood by LaMetric smart clock.
Installation
$ yarn add lametric-rss-formatter
Usage
const express = require('express');
const { format } = require('lametric-rss-formatter');
const app = express();
app.get('/', (req, res) => res.send(format({ url: 'https://www.reddit.com/.rss' })));
Options
You can pass additional options to the format
function:
Option | Default value | Description
-------| ------------- | -----------
icon
| nothing | Name of the LaMetric icon to display for each item.
max
| 5
| Maximum number of entries to display from the RSS feed.