Clipboard API wrapper
JavaScript HTML Makefile
Latest commit 244b08a Mar 16, 2015 @TooTallNate TooTallNate Release 0.1.7
Permalink
Failed to load latest commit information.
.gitignore Initial commit Aug 16, 2012
History.md Release 0.1.7 Mar 16, 2015
Makefile Initial commit Aug 16, 2012
Readme.md rewrite with normalized-upload Apr 26, 2013
component.json Release 0.1.7 Mar 16, 2015
example.html redo example Apr 26, 2013
index.js refactor bindings Jun 27, 2013
package.json Release 0.1.7 Mar 16, 2015

Readme.md

Clipboard

Clipboard library.

Installation

$ component install component/clipboard

Example

var Clipboard = require('clipboard');
var clip = new Clipboard(window);

clip.on('paste', function(e){
  e.items.forEach(function(item){
    console.log(item);
  });
});

clip.on('cut', function(){
  console.log('cut');
});

clip.on('copy', function(e){
  console.log('copy');
});

API

Clipboard#bind()

Bind event handlers. This is done for you in the constructor.

Clipboard#unbind()

Unbind event handlers.

Links

License

MIT