copy2clipboard

1.0.0 • Public • Published

copy2clipboard

Copy to the clipboard without using any flash.

You can populate any content into the clipboard when the user presses "CTRL-C".

It basically attaches to the "CTRL" key events and creates a hidden, selected textarea. Inspired by Trello.

Install

npm install copy2clipboard --save

Use

var ClipBoard = require("./clipboard.js");
var clip = new ClipBoard();
clip.set("fancy clipboard"); // set any content

Test it

Click here.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i copy2clipboard

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • greenify