/js-file-download

Primary LanguageJavaScriptMIT LicenseMIT

Javascript File Download

NPM version Build Status

Dependency Status devDependency Status peerDependency Status

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');