Native Web Share API is used if available, can copy link to clipboard and share directly to social media.
$ npm install @nigelotoole/share-url --save-dev
Import the JS into your project, add the elements to your HTML and initialize the plugin if needed.
MIT © Nigel O Toole