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.
clipboard-mini
Advanced tools
Readme
Super tiny copy-to-clipboard JS library. Only 1.34KB!
If you've come from clipboard.js and want a smaller package, you get pretty much the same here at half the cost (in KB).
No dependencies at all, no flash no nothing. Vanilla JS 🚀
Import clipboard-mini
into your project like any other module:
yarn add clipboard-mini
To start using it, you only need to give ClipboardMini
a selector.
import ClipboardMini from 'clipboard-mini'
const clipbutton = new ClipboardMini('.js-clipboard')
<button class="btn js-clipboard">Copy</button>
You can target what to copy via attribute, which can be text or a selector:
data-clipboard-text
: You will copy the text contained in th attribute to the clipboarddata-clipboard-target
: A unique CSS selector (it will grab the first result available) from which to copy its contents.In order to let the user know something has been copied to the clipboard, the button label will change to Copied!
for 2.5seconds, then revert to the original label.
FAQs
Super tiny copy-to-clipboard JS library
The npm package clipboard-mini receives a total of 33 weekly downloads. As such, clipboard-mini popularity was classified as not popular.
We found that clipboard-mini 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.