Various helpers related to file saving specific functionality.
Last updated 3 years ago
Was this helpful?
Source code is hosted on
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)