GitHub - koddr/goodshare.js: ๐Ÿš€ ะ useful modern JavaScript solution for share a link from your website to social networks or mobile messengers. Easy to install and configuring on any of your website! (original) (raw)

๐Ÿš€ goodshare.js

goodshare.js logo github

npm version bundle size jsDelivr download code style: prettier license twit link

A useful modern JavaScript solution for share a link from your website to social networks or mobile messengers.
Easy to install and configuring on any of your website!

The Why?

Simple install, extensive documentation, developer support, SEO friendly, small bundle size 1.04 KB (with all dependencies, minified and gzipped), many options for customization of appearance, clean code without scripts tracking user activity on the page, high speed.

Docs, Change log

Installation

Install via npm or pnpm or yarn :

Or include from jsDelivr CDN:

Usage

Works with any HTML tags: <a>, <div>, <button> or other. Choose any and add required attributes data-social.

Full list of supported social providers and mobile messengers.

Share this to Twitter

Share this to Facebook

Share this to LinkedIn

By default, goodshare.js search this tags for get title, description and image (for some social networks):

Current page title ...

Framework components

Size limit report

npm run size

Time limit: 80 ms Size: 1.06 kB gzipped Loading time: 21 ms on slow 3G Running time: 54 ms on Snapdragon 410 Total time: 75 ms

Thanks to Andrey Sitnik @ai/size-limit.

Developers

Project assistance

If you want to say ยซthank youยป or/and support active development goodshare.js:

  1. Add a GitHub Star to project.
  2. Twit about project on your Twitter.
  3. Join DigitalOcean at our referral link (your profit is $100 and we get $25).

Thanks for your support! ๐Ÿ˜˜ Together, we make this project better every day.

DigitalOcean Referral Badge

Stargazers over time

Stargazers over time

Code Contributors

This project exists thanks to all the people who contribute.

License

MIT