{"_id":"@mariozechner/clipboard","name":"@mariozechner/clipboard","dist-tags":{"latest":"0.3.0"},"versions":{"0.3.0":{"name":"@mariozechner/clipboard","version":"0.3.0","main":"index.js","types":"index.d.ts","napi":{"name":"clipboard","triples":{"additional":["aarch64-apple-darwin","aarch64-unknown-linux-gnu","aarch64-pc-windows-msvc","universal-apple-darwin","riscv64gc-unknown-linux-gnu","x86_64-unknown-linux-musl"]}},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/badlogic/clipboard.git"},"devDependencies":{"@napi-rs/cli":"^2.18.0","ava":"^6.0.1"},"ava":{"timeout":"3m"},"engines":{"node":">= 10"},"scripts":{"artifacts":"napi artifacts","build":"napi build --platform --release","build:debug":"napi build --platform","prepublishOnly":"napi prepublish -t npm","test":"ava","universal":"napi universal","version":"napi version"},"optionalDependencies":{"@mariozechner/clipboard-win32-x64-msvc":"0.3.0","@mariozechner/clipboard-darwin-x64":"0.3.0","@mariozechner/clipboard-linux-x64-gnu":"0.3.0","@mariozechner/clipboard-darwin-arm64":"0.3.0","@mariozechner/clipboard-linux-arm64-gnu":"0.3.0","@mariozechner/clipboard-win32-arm64-msvc":"0.3.0","@mariozechner/clipboard-darwin-universal":"0.3.0","@mariozechner/clipboard-linux-riscv64-gnu":"0.3.0","@mariozechner/clipboard-linux-x64-musl":"0.3.0"},"_id":"@mariozechner/clipboard@0.3.0","gitHead":"7c9158f3a7f49cf8bbfe90132923e66c98d0c96e","description":"> **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.","bugs":{"url":"https://github.com/badlogic/clipboard/issues"},"homepage":"https://github.com/badlogic/clipboard#readme","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"integrity":"sha512-tQrCRAtr58BLmWcvwCqlJo5GJgqBGb3zwOBFFBKCEKvRgD8y/EawhCyXsfOh9XOOde1NTAYsYuYyVOYw2tLnoQ==","shasum":"8622a9b00a8ba1639aa95041087f7941514a894c","tarball":"https://registry.npmjs.org/@mariozechner/clipboard/-/clipboard-0.3.0.tgz","fileCount":9,"unpackedSize":19499,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@mariozechner%2fclipboard@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICtdHu9zqoHQiBn9mFhpUU9nHeux/yLbYAgBaeOOeu4wAiAiBsNrd3LrubycsokAAV739K5sJok6/jX2O0KNC7DIQA=="}]},"_npmUser":{"name":"badlogic","email":"mario@badlogicgames.com"},"directories":{},"maintainers":[{"name":"badlogic","email":"mario@badlogicgames.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/clipboard_0.3.0_1767842177408_0.4149934728018818"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-08T03:16:17.292Z","0.3.0":"2026-01-08T03:16:17.554Z","modified":"2026-01-08T03:16:18.175Z"},"maintainers":[{"name":"badlogic","email":"mario@badlogicgames.com"}],"description":"> **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.","homepage":"https://github.com/badlogic/clipboard#readme","repository":{"type":"git","url":"git+https://github.com/badlogic/clipboard.git"},"bugs":{"url":"https://github.com/badlogic/clipboard/issues"},"license":"MIT","readme":"# @mariozechner/clipboard\n\n> **Fork of [@crosscopy/clipboard](https://github.com/CrossCopy/clipboard)**\n>\n> This fork updates to the latest `clipboard-rs` (0.3.1) and adds musl (Alpine Linux) support.\n> All credit goes to the original authors.\n\n![NPM Version](https://img.shields.io/npm/v/@mariozechner/clipboard)\n[![CI](https://github.com/badlogic/clipboard/actions/workflows/CI.yml/badge.svg)](https://github.com/badlogic/clipboard/actions/workflows/CI.yml)\n\n**NPM Package**: https://www.npmjs.com/package/@mariozechner/clipboard\n\n**GitHub**: https://github.com/badlogic/clipboard\n\n> This is a clipboard API npm package that allows you to copy and paste data to and from the clipboard.\n> 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.\n> Data Format Supported\n>\n> - Text\n> - Image\n> - Rich Text Format\n> - Files\n> - HTML\n\n## Acknowledgements\n\n- [ChurchTao/clipboard-rs](https://github.com/ChurchTao/clipboard-rs) is written in rust, which is used to provide the native clipboard support for this package across Linux, Windows and MacOS. This package is basically a wrapper around this rust package.\n - https://crates.io/crates/clipboard-rs\n- [napi.rs](https://napi.rs/) was used to create the node.js addon for this package, so that API calls written in rust can be called from node.js.\n\n## API\n\nDetailed API function declarations can be found in the [index.d.ts](./index.d.ts).\n\nOr you can refer to the source code in [src/lib.rs](./src/lib.rs).\n\n## Sample\n\n```javascript\nimport Clipboard from \"@mariozechner/clipboard\";\n\nconsole.log(await Clipboard.getText());\n\nconsole.log(await Clipboard.getHtml());\n\nif (await Clipboard.hasImage()) {\n console.log(await Clipboard.getImageBase64());\n} else {\n console.log(\"No Image\");\n}\n```\n\n## Publish\n\nEverything is done with GitHub Action.\n\nRun `npm version patch` to bump the version.\nThen `git push --follow-tags` to push the changes and tags to GitHub. GitHub Action will automatically build and publish.\n","readmeFilename":"README.md","_rev":"1-b07e373d74ac268d1eefc93d22067b3b"}