Skip to content

wilzbach/copy2clipboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Copy to the clipboard without using flash

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published