1.0.0 • Published 3 years ago

lametric-rss-formatter v1.0.0

Weekly downloads
6
License
Unlicense
Repository
github
Last release
3 years ago

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:

OptionDefault valueDescription
iconnothingName of the LaMetric icon to display for each item.
max5Maximum number of entries to display from the RSS feed.