clipboard

Clipboard API polyfill

8 months after

Async Clipboard NPM version Dependency Status Build Status Coverage Status

Async clipboard api uses navigator.clipboard if available or smallest polyfill in the world.

Install

npm i @cloudcmd/clipboard

API

writeText(str)

Write text to clipboard.

const clipboard = require('@cloudcmd/clipboard');

clipboard.writeText('hello')
    .then(console.log)
    .catch(console.error);

License

MIT

Related Repositories

clipboard.js

clipboard.js

:scissors: Modern copy to clipboard. No Flash. Just 3kb gzipped :clipboard: ...

angular-clipboard

angular-clipboard

Copy to clipboard with AngularJS directive, without using Flash. ...

clipboard.js

clipboard.js

:clipboard: Sane copying on the web. ...

clipboard-copy

clipboard-copy

Lightweight copy to clipboard for the web ...

v-clipboard

v-clipboard

Vue.js clipboard library (no dependencies, less than 2kb minified) ...