Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.13 KB

README.md

File metadata and controls

33 lines (21 loc) · 1.13 KB

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