Skip to content

KeisukeTagami/file-reader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Elm HTML5 FileReader bindings

Bindings for the HTML5 file upload control, which is implemented in browsers via the native FileReader class.

FileReader has three main methods (see MDN):

FileReaderInstance.readAsText();
FileReaderInstance.readAsArrayBuffer();
FileReaderInstance.readAsDataURL();

The module also provides helper Elm decoders for change events on <Input type="file"> and drop events, together with a set of examples.

Simon Hampton, Daniel Bachler

About

Elm native bindings for HTML5 FileReader class

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elm 74.9%
  • JavaScript 25.1%