adaltas / adaltas/node-csv

One CSV to Another and strip 0x00 characters

Open
#329 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
4.3k
Forks
299
Avg merge
16h 19m
Merged PRs (30d)
1

Description

I have a Pipe Delimited CSV (Source) like:

COLUMN 1|COLUMN 2|COLUMN 3
VALUE A1|VALUE A2|VALUE A3
VALUE B1|VALUE B2|VALUE B3

I want a CSV (Target) like:

"COLUMN 1","COLUMN 2","COLUMN 3"
"VALUE A1","VALUE A2","VALUE A3"
"VALUE B1","VALUE B2","VALUE B3"

How do I go about:

  1. Writing the source to a Target without going through "for loops" or "mapping" as it creates memory error on very large csv?
  2. Also in this process, remove all 0x00 (unprintable) characters ?

Will appreciate it if I can have a small sample on this.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository file, test, or entry point. Start by locating the package's streaming CSV API documentation and determine how the requested pipe-delimited input, quoted output, and 0x00 removal should be documented without causing memory errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
backend, data
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.