18.0.0 • Published 1 year ago

@clemox/ngx-file-saver v18.0.0

Weekly downloads
1
License
-
Repository
github
Last release
1 year ago

ngx-file-saver

This projet is an inspiration of eligrey FileSave.js.
The library is full compatible with Angular, and it's simple to use.

Source code

Source code can be found on my GitHub.

Browsers

I made some test on following browsers. | Browser | Version | | ----------------------- | -------------- | | Firefox | 80 | | Google Chrome | 84 | | Microsoft Edge Chromium | 85 |

Install

npm install @clemox/ngx-file-saver

Usage

1) Import module

import { NgxFileSaverModule } from '@clemox/ngx-file-saver';

@NgModule({ 
    imports: [ NgxFileSaverModule ]
})

2) Declare service

import { NgxFileSaverModule } from '@clemox/ngx-file-saver';

constructor(
    private fileSaver: NgxFileSaverService
) { }

3) Download file or blob

this.fileSaver.saveUrl(url, 'Test.docx');
const blob = new Blob(['Test de blob'], { type: 'text/plain' });
this.fileSaver.saveBlob(blob, 'Test.txt');-
18.0.0

1 year ago

7.1.0

1 year ago

7.0.0

2 years ago

6.0.0

2 years ago

5.0.0

3 years ago

4.0.0

3 years ago

3.0.0

4 years ago

2.0.0

4 years ago

1.1.0

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago