browdl
v1.0.4
Published
Easily download browser-side data
Downloads
4
Readme
browdl
Easily download browser-side data
Installation
npm install --save browdl
Usage
Download a string into a .txt
import browdl from "browdl";
browdl("Hello, World", "hello.txt");
Download a JavaScript object into a .json
import browdl from "browdl";
browdl(JSON.stringify({ message: "Hello World" }), "hello.json");
Download a JavaScript object into a .csv
import browdl from "browdl";
import json2csv from "json2csv";
browdl(json2csv.parse({ firstName: "John", lastName: "Doe" }), "person.csv");