No Proscribed Meaning

    karet.fr

    0.1.0 • Public • Published

    Karet FR · Gitter GitHub stars

    This library provides a thin wrapper over the standard FileReader API. See also Karet XHR.

    Examples:

    npm version Build Status Code Coverage

    Contents

    Reference

    The interface of this library consists of named exports. Typically one just imports the library as:

    import * as FR from 'karet.fr'

    Starting

    FR.readAsArrayBuffer(file) ~> fileReader

    FR.readAsBinaryString(file) ~> fileReader

    FR.readAsDataURL(file) ~> fileReader

    FR.readAsText(file) ~> fileReader

    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

    FR.result(fileReader) ~> varies

    FR.error(fileReader) ~> exception

    Install

    npm i karet.fr

    DownloadsWeekly Downloads

    20

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    23.2 kB

    Total Files

    7

    Last publish

    Collaborators

    • polytypic