1.0.5 • Published 5 years ago

open-with-newsfeeder-btn v1.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Newsfeeder

Newsfeeder button, link your rss or atom feed with newsfeeder.

Install

npm i -S open-with-newsfeeder-btn

Usage

With a script tag:

https://unpkg.com/open-with-newsfeeder-btn/dist/open-with-newsfeeder-btn.min.js

With a bundler like webpack:

const renderNewsfeederButton = require('open-with-newsfeeder-btn');
// or
import renderNewsfeederButton from 'open-with-newsfeeder-btn';

Creating the button

renderNewsfeederButton({ 
    container: document.body, 
    href: 'https://esstudio.site/feed.xml' 
});

You don't have to specify the href if you're website has an rss or atom link hint. For example:

<link type="application/atom+xml" rel="alternate" href="https://esstudio.site/feed.xml" title="Echo Sierra Studio" />

Example of the "Open with Newsfeeder" button

License: MIT