1.0.5 • Published 8 years ago
copyr v1.0.5
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