Neatly Punctuated Musings

    @desco/file-base-64

    1.2.0 • Public • Published

    @desco/file-base-64

    Permite a conversão rápida de arquivos capturados via InputFile para base64

    Instalação

    npm install --save @desco/file-base-64
    

    Uso

    <template>
        <div>
            <input type="file" @change="onChange" multiple>
            <input type="file" @change="onChange">
        </div>
    </template>
    
    <script>
    import fileBase64 from '@desco/file-base-64'
    
    export default {
        methods: {
            onChange (e) {
                fileBase64(e).then(_base64 => {
                    console.log(_base64)
                })
            },
        },
    }
    </script>
    

    Keywords

    none

    Install

    npm i @desco/file-base-64

    DownloadsWeekly Downloads

    3

    Version

    1.2.0

    License

    ISC

    Unpacked Size

    1.71 kB

    Total Files

    3

    Last publish

    Collaborators

    • descodifica