
Product
PHP and Composer Support Is Now in Beta
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.
@mariozechner/clipboard
Advanced tools
> **Fork of [@crosscopy/clipboard](https://github.com/CrossCopy/clipboard)** > > This fork updates to the latest `clipboard-rs` (0.3.1) and adds musl (Alpine Linux) support. > All credit goes to the original authors.
Fork of @crosscopy/clipboard
This fork updates to the latest
clipboard-rs(0.3.1) and adds musl (Alpine Linux) support. All credit goes to the original authors.
NPM Package: https://www.npmjs.com/package/@mariozechner/clipboard
GitHub: https://github.com/badlogic/clipboard
This is a clipboard API npm package that allows you to copy and paste data to and from the clipboard. There doesn't seem to be a good clipboard package for node.js (that supports data format beyond text), so I decided to make one. Data Format Supported
- Text
- Image
- Rich Text Format
- Files
- HTML
Detailed API function declarations can be found in the index.d.ts.
Or you can refer to the source code in src/lib.rs.
import Clipboard from "@mariozechner/clipboard";
console.log(await Clipboard.getText());
console.log(await Clipboard.getHtml());
if (await Clipboard.hasImage()) {
console.log(await Clipboard.getImageBase64());
} else {
console.log("No Image");
}
Everything is done with GitHub Action.
Run npm version patch to bump the version.
Then git push --follow-tags to push the changes and tags to GitHub. GitHub Action will automatically build and publish.
The GitHub Actions NPM_TOKEN repository secret is a granular npm token with publish access to @mariozechner/clipboard and all @mariozechner/clipboard-* platform packages. npm granular access tokens expire after 90 days, so this secret must be rotated before expiry.
FAQs
> **Fork of [@crosscopy/clipboard](https://github.com/CrossCopy/clipboard)** > > This fork updates to the latest `clipboard-rs` (0.3.1) and adds musl (Alpine Linux) support. > All credit goes to the original authors.
The npm package @mariozechner/clipboard receives a total of 1,962,608 weekly downloads. As such, @mariozechner/clipboard popularity was classified as popular.
We found that @mariozechner/clipboard demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.

Product
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.