node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

component-normalized-upload

normalized-upload

Normalized DataTransfer items for less upload item handling pain.

Installation

$ component install component/normalized-upload

Example

var normalize = require('normalized-upload');
 
document.onpaste = function(e){
  console.log(e);
  normalize(e, function(){
    e.items.forEach(function(item){
      console.log(item);
    });
  });
};

License

MIT