Skip to content

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

Notifications You must be signed in to change notification settings

max-mapper/buffer-drop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
})

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages