Save Helpers

Various helpers related to file saving specific functionality.

Source code is hosted on GitHub

yarn add @corets/save-helpers

saveAsFile()

Save any kind of data as a file (works only in the browser):

import { saveAsFile } from "@corets/save-helpers"

const fileName = "data.csv"
const data = "name,age\nJohn,30\nSnow,40"

saveAsFile(fileName, data)

Last updated