Precompiled sindresorhus/copy-text-to-clipboard
npm install modern-copy  
> A precompiled version of sindresorhus/copy-text-to-clipboard, clipboard in modern browsers.
``bash`
❯ npm install modern-copy
Direct use it in your build process, without any extra config:
`js
import mcopy from 'modern-copy'
button.addEventListener('click', () => {
mcopy('👌🙋')
// Must be called in response to a user gesture event, like click or keyup.
})
`
Or CDN version, access it via window.mcopy:
`html`
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D
modern-copy © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).
> egoistian.com · GitHub @egoist · Twitter @rem_rin_rin