easyclip
Copy string to clipboard. Just the basics. < 1kB.
Using in JS projects
Install using npm or yarn
npm install easy-clip
yarn add easy-clip
; // copy 'Foobar' to clipboardconst buttonHandler = ;
Using in browser (HTML + Vanilla)
Load script using
Copy string to clipboard using function easyclip()
For a full example
Static Template Copy date and time to clipboard Paste clipboard contents into textarea to test.
Building
Install depedencies
yarn
Build to dist/
yarn build
The npm equivalents should work perfectly fine too.