@lesjoursfr/mastodon-share-button

2.0.7 • Public • Published

npm version QC Checks

@lesjoursfr/mastodon-share-button

Simple module to share content to Mastodon.

How to use

import MastodonShareButtons from "@lesjoursfr/mastodon-share-button";
import mastodonShareButtonsFr from "@lesjoursfr/mastodon-share-button/src/lang/fr";

/* Initialize the module */
new MastodonShareButtons({
	lang: mastodonShareButtonsFr,
	saveInstance: true,
});
<!-- Create a button -->
<button
	mastodon-sharing-text="Mastodon sharing button! https://github.com/lesjoursfr/mastodon-share-button"
>
	Share on Mastodon
</button>

Readme

Keywords

Package Sidebar

Install

npm i @lesjoursfr/mastodon-share-button

Weekly Downloads

24

Version

2.0.7

License

MIT

Unpacked Size

22.8 kB

Total Files

10

Last publish

Collaborators

  • e-adrien