How to use the file-saver/FileSaver.js.saveAs function in file-saver

To help you get started, we’ve selected a few file-saver examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github iurii-kyrylenko / hobbies / front-end-ng2 / src / app / customization / item-list.component.ts View on Github external
this.http.get(url, requestOptions).map(res => res.json()).subscribe(data => {
            const blob = new Blob(
                [JSON.stringify(data.items, this.replaceForDownload, 1)],
                {type: 'application/json'});
            saveAs(blob, this.exportFileName);


An HTML5 saveAs() FileSaver implementation

Latest version published 3 years ago

Package Health Score

77 / 100
Full package analysis