copy-to-clip
v1.0.2
Published
Copy text to the clipboard in browsers
Downloads
2
Readme
copy-to-clip
Copy text to the clipboard
Comparison
- This module: 0,4 kB in new version!
clipboard.js
: 3.4 kBcopy-text-to-clipboard
: 0.6 kB, but not supported in browser usages
Simple usage
button.addEventListener('click', () => {
copy('Copy smth...');
});
Usage in browser
<script src="./index.js"></script>
<script>
button.addEventListener('click', () => {
copyToClip(getUnicorns(i));
});
</script>
License
MIT © Dmitry Bardt