copy-to-clipboard2
v0.3.0
Published
Copy text to clipboard on the browser.
Downloads
13
Readme
copy-to-clipboard2
Copy text to clipboard on the browser.
Install
$ npm install copy-to-clipboard2 --save
Example
import copyToClipboard from 'copy-to-clipboard2';
copyToClipboard('Text').then(() => {
console.log('Copyed successfully.')
}).catch(err => {
console.error('Copyed failed', err)
})