Read and write to the clipboard with the modern Clipboard API 📋

async/await, permission-aware, and way cleaner than execCommand.

â‹… Supports text, HTML, and images
â‹… Works in secure contexts (HTTPS)
â‹… No Flash. No hacks.

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API