You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

rss-tooter

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rss-tooter

## Installation

1.0.3
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 15 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts