Socket
Book a DemoInstallSign in
Socket

@gregoranders/csv

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gregoranders/csv

Simple CSV parser in TypeScript

latest
Source
npmnpm
Version
0.0.13
Version published
Maintainers
1
Created
Source

@gregoranders/csv

Simple CSV parser in TypeScript

API Docs

License Issues Code maintainability Code issues Code Technical Debt

types node

Main Language Languages Code Size Repo-Size

Features

  • TypeScript
  • Jest Unit Tests with Code Coverage
  • GitHub CI Integration (feature, development, master, release)
  • Publish via CI
  • Code Quality via Code Climate
Releasenpm
Master BuildMaster CoverageMaster Version
Development BuildTest CoverageDevelopment Version

Example

npm install @gregoranders/csv
import Parser from '@gregoranders/csv';

const parser = new Parser();
const rows = parser.parse('a,b,c\n1,2,3\n4,5,6');
console.log(JSON.stringify(rows, null, 2));

[
  [
    "a",
    "b",
    "c"
  ],
  [
    "1",
    "2",
    "3"
  ],
  [
    "4",
    "5",
    "6"
  ]
]
console.log(JSON.stringify(parser.rows, null, 2));

[
  [
    "a",
    "b",
    "c"
  ],
  [
    "1",
    "2",
    "3"
  ],
  [
    "4",
    "5",
    "6"
  ]
]
console.log(JSON.stringify(parser.json, null, 2));

[
  {
    "a": "1",
    "b": "2",
    "c": "3"
  },
  {
    "a": "4",
    "b": "5",
    "c": "6"
  }
]

Clone repository

git clone https://github.com/gregoranders/ts-csv

Install dependencies

npm install

Build

npm run build

Testing

Test using Jest

npm test

Code Climate Checks docker required

npm run codeclimate

Clear

npm run clear

Keywords

api-documenter

FAQs

Package last updated on 28 Oct 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