1.0.0 • Published 3 years ago
@bytesoftio/helpers-file v1.0.0
@bytesoftio/helpers-file
Installation
yarn add @bytesoftio/helpers-file
or npm install @bytesoftio/helpers-file
Table of contents
Description
Collection of file related helpers.
Usage
downloadAsFile
Download any kind of data as a file (works only in browser).
import { downloadAsFile } from "@bytesoftio/helpers-file"
const fileName = "data.csv"
const data = "name,age\nJohn,30\nSnow,40"
downloadAsFile(fileName, data)
1.0.0
3 years ago