Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

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

Install

npm i copyr

DownloadsWeekly Downloads

0

Version

1.0.5

License

MIT

Last publish

Collaborators

  • avatar