rss-tooter

1.0.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i rss-tooter

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

19.4 kB

Total Files

9

Last publish

Collaborators

  • seport