fsa

file-saver-angular

This library is used to export data to csv/excel

Showing:

Popularity

Downloads/wk

0

Maintenance

No Maintenance Data Available

Package

Dependencies

1

License

MIT

Type Definitions

Built-In

Tree-Shakeable

Yes?

Readme

Documentation

This library is used to export data to csv/excel

Installation

npm install file-saver-angular

import FileSaverAngularService in your component and add this service in providers

providers: [FileSaverAngularService]

create service object

constructor(private fileSaverServiceObj: FileSaverAngularService) { }

How to export data in csv. use exportToCsv() method using service object like this

this.fileSaverServiceObj.exportToCsv(
      [
        {
          Language: 'Python',
          Framework: 'Django'
        }, {
          Language: 'PHP',
          Framework: 'Laravel'
        }
      ], 'test.csv'
    );

How to export data in excel. use exportToExcel() method using service object like this

this.fileSaverServiceObj.exportToExcel(
      [
        {
          Language: 'Python',
          Framework: 'Django'
        }, {
          Language: 'PHP',
          Framework: 'Laravel'
        }
      ], 'test.xls'
    );
1. first parameter is a data array 
2. second parameter is a file name

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Tutorials

No tutorials found
Add a tutorial