question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Switch to Clipboard API

See original GitHub issue

Chrome, Edge, Firefox, and Safari (“modern browsers”) now support the Clipboard API, allowing you to copy text to the clipboard using navigator.clipboard.writeText().

Should this package switch to the Clipboard API (or be deprecated in favor of it)?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:6
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

13reactions
sindresorhuscommented, Feb 25, 2021

Deprecated just means discouraged on the web. Nothing can ever be removed.

1reaction
Richienbcommented, Jan 1, 2021

The async clipboard API is now supported in clipboardy.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Interact with the clipboard - Mozilla - MDN Web Docs
The Clipboard API writes arbitrary data to the clipboard from your extension. Using the API requires the permission "clipboardRead" or " ...
Read more >
Cut, Copy and Paste in JavaScript with the Clipboard API
Copying and pasting text will be a useful option in most applications. The API is refreshingly simple: // copy text TO the clipboard...
Read more >
Clipboard API and events
Clipboard Event API - This API provides a way to hook into the common clipboard operations of cutting, copying and pasting so that...
Read more >
How to Copy to Clipboard in JavaScript with the ...
execCommand() . However, a relatively new Clipboard API was recently released to make data transfer via copy/paste seamless! Reading the ...
Read more >
Unblocking clipboard access - web.dev
Async Clipboard API simplifies permissions-friendly copy and paste. ... where blocking the page for clipboard transfer is a poor experience.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found