JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 685676
  • Score
    100M100P100Q174046F
  • License MIT

Javascript function that triggers browser to save javascript-generated content to a file

Package Exports

  • js-file-download

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (js-file-download) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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