js-file-download

v0.4.12
Javascript function that triggers browser to save javascript-generated content to a file
javascript file react download

Javascript File Download

Javascript function to trigger browser to save data to file as if it was downloaded.

Installation

npm install js-file-download --save

Usage

var fileDownload = require('js-file-download');
fileDownload(data, 'filename.csv');
npm i js-file-download

Metadata

  • MIT
  • Whatever
  • Kenneth Jiang
  • released 5/6/2020

Downloads

Maintainers