copyr
v1.0.5
Published
Copy text to the clipboard.
Downloads
1
Readme
A small (under 1KB) module for copying text to the clipboard.
Only uses document.execCommand('copy')
. There are no fallbacks or other unnecessary code.
Used by Ptorx and other projects in the Xyfir Network.
import copy from 'copyr';
copy('Some text');
// Clipboard now has 'Some text' saved to it