
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
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
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
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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.