You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

csv-grape

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csv-grape

npm package to parse and load csv files

1.1.1
npmnpm
Version published
Weekly downloads
6
50%
Maintainers
1
Weekly downloads
 
Created
Source

csv-grape

A library that handles csv files and its metadata for js or typescript projects.

Installation

npm install csv-grape

Initiate the service

import { CsvGrape } from 'csv-grape';

Get all csv content


    CsvGrape.getCsvData(event).then((_response)=>{
      this.data=_response;
      
    },(reject)=>{
      console.log(reject);
    });

Get csv file metadata

//Here we can get _response from getCsvData(event)
this.csvMetaData=  JSON.stringify(CsvGrape.getMetaData(_response.Data,_response.Headers));

Get csv content with metadata


CsvGrape.getCsvWithMetaData(event).then((_response)=>{
      this.csvJsonAndMetaData=_response;
    },(reject)=>{
      console.log(reject);
    });

Keywords

csv

FAQs

Package last updated on 04 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts