1.0.1 • Published 10 years ago

buffer-drop v1.0.1

Weekly downloads
3
License
BSD
Repository
github
Last release
10 years ago

buffer-drop

high level client-side module to simplify dropping a file onto a page and reading it as a Buffer

usage

will call the onDrop callback below whenever a file is dropped on the page. if multiple files are dropped at once it will read the first one only.

drop(function onDrop(err, data) {
  console.log('first file dropped on page as a Buffer:', data)
})