Comment on page
Save Helpers
Various helpers related to file saving specific functionality.
yarn
npm
yarn add @corets/save-helpers
npm install --save @corets/save-helpers
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 modified 2yr ago