rss-tooter
v1.0.3
Published
## Installation
Downloads
3
Readme
RSS Tooter
Installation
$ npm install rss-tooter
Example Usage
Run this lambda on a cron job to periodically fetch & post RSS updates to your mastodon account
// index.js
import { RssTooter } from 'rss-tooter'
const tooter = new RssTooter(
MASTODON_ACCESS_TOKEN,
MASTODON_API_URL, // e.g. https://mastodon.social/api/v1/
MASTODON_ACCOUNT_ID,
RSS_FEED_URL)
tooter.run()
Caveats
Your Mastodon account can't have any other sources outside of the designated RSS feed. It uses your last post timestamp to filter out already posted RSS updates to avoid reposts.