Search…
Save Helpers
Various helpers related to file saving specific functionality.
Source code is hosted on GitHub
yarn
npm
yarn add @corets/save-helpers
npm install --save @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)
Copy link