3.0.5 • Published 5 years ago
text-to-clipboard v3.0.5
text-to-clipboard
Copy text to clipboard
How to install
Use latest version
npm install text-to-clipboard@latest
Use spesific version
npm install text-to-clipboard@1.0.0
How to use
For vanilla js
var copy = require('text-to-clipboard')
copy.copyCB('some text') // text has been copied to clipboard now
For TypeScript
import * as copy from 'text-to-clipboard'
copy.copyCB('some text') // text has been copied to clipboard now