Skip to content
Clipboard API polyfill
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.babelrc
.eslintrc
.gitignore
.npmignore
.travis.yml
ChangeLog
LICENSE
README.md
package.json

README.md

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

You can’t perform that action at this time.