2.0.0 • Published 6 years ago
@cloudcmd/clipboard v2.0.0
Async Clipboard

Async clipboard api uses navigator.clipboard if available or smallest polyfill in the world.
Install
npm i @cloudcmd/clipboardAPI
writeText(str)
Write text to clipboard.
const clipboard = require('@cloudcmd/clipboard');
clipboard.writeText('hello')
.then(console.log)
.catch(console.error);License
MIT