Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Clipboard API wrapper
JavaScript HTML Makefile
branch: master
Failed to load latest commit information.
.gitignore Initial commit
History.md Release 0.1.7
Makefile Initial commit
Readme.md rewrite with normalized-upload
component.json Release 0.1.7
example.html redo example
index.js refactor bindings
package.json Release 0.1.7

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

Something went wrong with that request. Please try again.