
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
org.webjars.npm:clipboard-copy
Advanced tools
The goal of this package is to offer simple copy-to-clipboard functionality in modern web browsers using the fewest bytes. To do so, this package only supports modern browsers. No fallback using Adobe Flash, no hacks. Just 30 lines of code.
Unlike other implementations, text copied with clipboard-copy
is clean and
unstyled. Copied text will not inherit HTML/CSS styling like the page's background
color.
Supported browsers: Chrome, Firefox, Edge, Safari, IE11.
Works in the browser with browserify!
npm install clipboard-copy
const copy = require('clipboard-copy')
button.addEventListener('click', function () {
copy('This is some cool text')
})
successPromise = copy(text)
Copy the given text to the user's clipboard. Returns success
, a promise that resolves if the copy was successful and rejects if the copy failed.
Note: in most browsers, copying to the clipboard is only allowed if copy()
is
triggered in direct response to a user gesture like a 'click'
or a 'keypress'
.
clipboard-copy
(this package): 399 B gzippedclipboard-js
: 1.7 kB gzippedclipboard
: 3.1 kB gzippedTesting this module is currently a manual process. Open test.html
in your web browser and follow the short instructions. The web page will always load the latest version of the module, no bundling is necessary.
MIT. Copyright (c) Feross Aboukhadijeh.
FAQs
WebJar for clipboard-copy
We found that org.webjars.npm:clipboard-copy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.