Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
web-share-shim
Advanced tools
A polyfill for the WebShare API. It provides `navigator.share()` so you can share content on any device via WhatsApp, Telegram, Facebook, e-mail, and SMS. Try the [demo](http://nimiq.github.io/web-share-shim/demo/)! The whole package is 9.6kB minified, 4k
Readme
A polyfill for the WebShare API. It provides navigator.share()
so you can share content on any device via WhatsApp, Telegram, Facebook, e-mail, and SMS.
Try the demo! The whole package is 9.6kB minified, 4kB gzipped and licensed under the MIT License.
Open the share dialog by calling navigator.share
:
navigator.share({
title: 'Web Share Shim',
text: 'Check out Web Share Shim — it rocks!',
url: 'http://nimiq.github.io/web-share-shim',
})
.then( _ => console.log('Successful share'))
.catch( error => console.log('Error sharing', error));
Attribute | Options | Default | Description |
---|---|---|---|
title | String | "" | A short title of what you are sharing. |
text | String | "" | A text describing what you are sharing. |
url | URL as String | "" | A link to what you are sharing. |
facebookId | number | "158651941570418" | ID of your facebook app if you want to support sharing to facebook on a desktop device. (default ID for demo only) |
You need to have gulp and all dependencies installed.
npm install
npm install gulp
Then run gulp
to build web-share-shim.bundle.min.js
.
FAQs
A polyfill for the WebShare API. It provides `navigator.share()` so you can share content on any device via WhatsApp, Telegram, Facebook, e-mail, and SMS. Try the [demo](http://nimiq.github.io/web-share-shim/demo/)! The whole package is 9.6kB minified, 4k
The npm package web-share-shim receives a total of 7 weekly downloads. As such, web-share-shim popularity was classified as not popular.
We found that web-share-shim demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.