@lyo/copy-text-to-clipboard
v1.0.4
Published
Browser-compatible version of copy-text-to-clipboard
Downloads
12
Readme
@lyo/copy-text-to-clipboard
A browser-compatible version of copy-text-to-clipboard built automatically with Lyo.
Usage
In a browser
<script src="https://cdn.jsdelivr.net/npm/@lyo/copy-text-to-clipboard"></script>
<script>
copyTextToClipboard(foo);
</script>
In Node.js
# Install
npm i @lyo/copy-text-to-clipboard
const copyTextToClipboard = require('@lyo/copy-text-to-clipboard')
copyTextToClipboard(foo);
Disclaimer
This automated Lyo build may have not been properly tested, and is not guaranteed to work perfectly.
Use at your own risk