js-copy-to-clipboard
v0.0.4
Published
adds copy to clipboard feature for javascript and typescript projects
Downloads
9
Maintainers
Readme
js-copy-to-clipboard
Simple module exposing copyToClipboard function to copy any text to clip board for javascript and typescript projects
Installation
To install js-copy-to-clipboard
, you need node.js and npm.
In your project directory, just run
npm i js-copy-to-clipboard
Usage
Can be used in node, angular, react or vuejs projects
import copyToClipboard from 'js-copy-to-clipboard';
copyToClipboard('Text to copy'); // this text is copied to clipboard, you can use ctrl + v to paste the text
</script>
License
MIT