Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
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.
xe-clipboard
Advanced tools
Readme
基于 execCommand API 实现复制内容到剪贴板,支持主流的 H5 浏览器 IE, Chrome, Firefox, Opera, Safari, IOS, Android
压缩大小 < 0.5KB
10+ ✔ | Latest ✔ | 42+ ✔ | 41+ ✔ | 29+ ✔ | 10+ ✔ |
npm install xe-clipboard
<script src="https://cdn.jsdelivr.net/npm/xe-clipboard"></script>
<button id="btn1">Copy</button>
document.getElementById('btn1').addEventListener('click', function (evnt) {
// 由于浏览器的安全机制,操作剪贴板必须在事件之内才能有效
if (XEClipboard.copy('Copy this content to the clipboard.')) {
alert('Copy success.')
} else {
alert('The browser is not supported.')
}
})
MIT © 2017-present, Xu Liangzhan
FAQs
纯 Javascript 实现复制文本到剪贴板,支持IE、Chrome、Firefox、Opera、Safari、IOS、Android
The npm package xe-clipboard receives a total of 264 weekly downloads. As such, xe-clipboard popularity was classified as not popular.
We found that xe-clipboard 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.
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.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.