copyr

1.0.5 • Public • Published

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

Package Sidebar

Install

npm i copyr

Weekly Downloads

0

Version

1.0.5

License

MIT

Last publish

Collaborators

  • xyfir