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

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i copyr

    Weekly Downloads

    11

    Version

    1.0.5

    License

    MIT

    Last publish

    Collaborators

    • xyfir