copy-to-clipboard2

0.3.0 • Public • Published

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)
})

Readme

Keywords

Package Sidebar

Install

npm i copy-to-clipboard2

Weekly Downloads

8

Version

0.3.0

License

MIT

Unpacked Size

237 kB

Total Files

16

Last publish

Collaborators

  • wangzhengbo