paulstelzer / ngx-papaparse

Papa Parse wrapper for Angular 2/4/5/6

Home Page:https://alberthaff.dk/projects/ngx-papaparse/docs/v3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logo

Papa Parse wrapper for Angular

Version Travis Coveralls github License NPM downloads GitHub stars

This is a Papa Parse wrapper library for Angular.

More information in the full documentation.

Installation

You can install the library with npm.

Angular 6

npm install ngx-papaparse@3 --save

Documentation

Older version of Angular

For older versions of Angular, please use ngx-papaparse 2.x for Angular 5 or ngx-papaparse 1.x for Angular 2/4.

Getting started

First import the PapaParseModule into your app.

import { PapaParseModule } from 'ngx-papaparse';

@NgModule({
  ...
  imports: [
    ...
    PapaParseModule
  ]
})

Then use it in a component.

import { Component } from '@angular/core';
import { Papa } from 'ngx-papaparse';

@Component({
  ...
})
export class AppComponent {

    constructor(private papa: Papa) {
        const csvData = '"Hello","World!"';
        
        this.papa.parse(csvData,{
            complete: (result) => {
                console.log('Parsed: ', result);
            }
        });
    }
}

For a more detailed explanation of how to use this library, please refer to the full documentation.

About

Papa Parse wrapper for Angular 2/4/5/6

https://alberthaff.dk/projects/ngx-papaparse/docs/v3

License:MIT License


Languages

Language:TypeScript 87.0%Language:JavaScript 13.0%