one-line-clipboard one function implements copy based on clipboard.js webpack usage: import copy from 'one-line-clipboard' await copy('content to copy') script usage: <script src="https://cdn.jsdelivr.net/npm/one-line-clipboard/dist/index.js"></script> await oneLineCopy('content to copy')