clipboard-tool
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

clipboard-tool

Build Status Dependencies Development Dependencies

npm

Example

var Clipboard = require('clipboard-tool');
 
// Write the string 'Hello' to the system's clipboard
Clipboard.write('Hello');

This package needs document.execCommand('copy') to work and has no effect otherwise.

If you are creating a Chrome or Opera extension, be sure to include the clipboardWrite permission in your manifest.

Contributing

Download source and compile:

git clone git@github.com:[USERNAME]/clipboard-tool.git
yarn prepublish

Watch for changes and recompile:

yarn start

Package Sidebar

Install

npm i clipboard-tool

Weekly Downloads

1

Version

1.1.0

License

LGPL-3.0

Unpacked Size

3.15 kB

Total Files

4

Last publish

Collaborators

  • jannes