≡ Karet FR ·
![GitHub stars](https://camo.githubusercontent.com/4d03ff31a8b8d8387a2e07a064a3452452559bf5f305e3c991a269c29bef34b9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f63616c6d6d2d6a732f6b617265742e66722e7376673f7374796c653d736f6369616c)
This library provides a thin wrapper over the standard
FileReader
API.
See also Karet XHR.
Examples:
- Live Image Upload CodeSandbox.
≡ Contents
- Reference
- Starting
- State
FR.hasEnded(fileReader) ~> boolean
FR.hasFailed(fileReader) ~> boolean
FR.hasStarted(fileReader) ~> boolean
FR.hasSucceeded(fileReader) ~> boolean
FR.isDone(fileReader) ~> boolean
FR.isProgressing(fileReader) ~> boolean
FR.loaded(fileReader) ~> number
FR.readyState(fileReader) ~> number
FR.total(fileReader) ~> number
- Result
≡ Reference
The interface of this library consists of named exports. Typically one just imports the library as:
import * as FR from 'karet.fr'