JS Client File Downloader
Introduction
JS Client File Downloader is a simple package to download json, csv, pdf, docx, text files from client side(Browser).
Browser Compatibility
JS File Downloader supports all browsers that are ES5-compliant (IE8 and below are not supported).
Installing with package manager
With a package manager (recomanded):
npm i js-client-file-downloader --save
Basic usage
; var json = employee: name: "sonoo" salary: 56000 married: true ;var filename = "testing"; // { jsFileDownloader;}
Methods:
Suppose on Click method we want to initiate download files
//makeCSV() to make cvs file , An array has to be passed in this method as input//ie , dataToBeDocumented= [{object},{object},{object}] format.
testfileName
output file name
dataToBeDocumented
pass the data that you want to create a file.
Author
- Souvik Dey [https://github.com/svkdey]
License
Copyright (c) 2019-present,Souvik Dey
Email : deysouvik955@gmail.com Github : https://github.com/svkdey