main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
272 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | # Javascript File Download
|
---|
| 2 |
|
---|
| 3 | Javascript function to trigger browser to save data to file as if it was downloaded.
|
---|
| 4 |
|
---|
| 5 | # Installation
|
---|
| 6 |
|
---|
| 7 | npm install js-file-download --save
|
---|
| 8 |
|
---|
| 9 | # Usage
|
---|
| 10 |
|
---|
| 11 | var fileDownload = require('js-file-download');
|
---|
| 12 | fileDownload(data, 'filename.csv');
|
---|
Note:
See
TracBrowser
for help on using the repository browser.