lametric-rss-formatter
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i lametric-rss-formatter

Weekly Downloads

1

Version

1.0.0

License

Unlicense

Unpacked Size

4.77 kB

Total Files

6

Last publish

Collaborators

  • rauli