npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

@cloudcmd/clipboard

1.0.2 • Public • Published

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

Keywords

none

install

npm i @cloudcmd/clipboard

Downloadsweekly downloads

28

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability