vue-file-saver
v1.0.3
Published
Simple alternative `file-saver` for Vue
Downloads
31
Readme
vue-file-saver
Simple alternative file-saver
for Vue
Usage
Add FileSaver
component to your App.vue
<script setup>
const { FileSaver } = useFileSaver()
</script>
<template>
<!-- Your code... -->
<FileSaver />
</template>
Use saveAs
function in any component
<script setup>
const { saveAs } = useFileSaver()
function myDownloadFn() {
saveAs(Blob, "my-file.txt")
}
</script>
...