C2fo
c2fo.github.io › fast-csv › docs › introduction › getting-started
Getting Started | Fast-CSV
Fast-csv is library for parsing and formatting CSVs or any other delimited value file in node. CSV Formatting · CSV Parsing · Built using typescript. Flexible formatting and parsing options, to fit almost any scenario. Built with streams first to avoid creating large memory footprint when ...
Fast-CSV
CSV Parser and Formatter · Built on top of the Node.js Stream API, so you can work with APIs you are familiar with
NextInstallation »
npm i -S fast-csv · Copy · npm i -S @fast-csv/parse · Copy · npm i -S @fast-csv/format · Edit this page · fast-csv · @fast-csv/parse ·
npm
npmjs.com › package › fast-csv
fast-csv - npm
May 6, 2026 - To get started with fast-csv check out the docs · csv · parser · fast · writer · csv writer · CSV · npm i fast-csv · github.com/C2FO/fast-csv · c2fo.github.io/fast-csv · 7,098,096 · 5.0.7 · MIT · 2 months ago · dustinsmith1024 · damartin · juan-c2fo ·
» npm install fast-csv
Published May 06, 2026
Version 5.0.7
Videos
16:41
How to write a CSV in NodeJs and Download in React Js? | fast-csv ...
04:33
How to export and download CSV in Node JS - YouTube
07:56
Fast-CSV - processando CSVs com JS para quem está com pressa - ...
03:43
NodeJS Read CSV File - YouTube
15:02
How to Use ChatGPT to Learn Anything FAST (Speed Learning) - YouTube
GitHub
github.com › C2FO › fast-csv
GitHub - C2FO/fast-csv: CSV parser and formatter for node · GitHub
Fast-csv is library for parsing and formatting CSVs or any other delimited value file in node. CSV Formatting · CSV Parsing · Built using typescript. Flexible formatting and parsing options, to fit almost any scenario.
Starred by 1.8K users
Forked by 216 users
Languages TypeScript 99.0% | JavaScript 1.0%
C2fo
c2fo.github.io › fast-csv › docs › parsing › examples
Examples | Fast-CSV
If the CSV contains a header row but you want to provide custom headers you can pass an array of headers, and set renameHeaders to true.
GitHub
github.com › C2FO › fast-csv › blob › main › documentation › docs › introduction › getting-started.md
fast-csv/documentation/docs/introduction/getting-started.md at main · C2FO/fast-csv
Fast-csv is library for parsing and formatting CSVs or any other delimited value file in node. CSV Formatting · CSV Parsing · Built using typescript. Flexible formatting and parsing options, to fit almost any scenario.
Author C2FO
C2fo
c2fo.github.io › fast-csv › docs › formatting › methods
Methods | Fast-CSV
Formats the rows and returns a Promise that will resolve with the CSV content as a Buffer.
GitHub
github.com › C2FO › fast-csv › blob › main › documentation › docs › parsing › options.md
fast-csv/documentation/docs/parsing/options.md at main · C2FO/fast-csv
If your CSV contains comments you can use this option to ignore lines that begin with the specified character (e.g.
Author C2FO
C2fo
c2fo.github.io › fast-csv › docs › introduction › example
Quick Examples | Fast-CSV
import * as csv from 'fast-csv'; const csvStream = csv.format({ headers: true }); csvStream.pipe(process.stdout).on('end', () => process.exit()); csvStream.write({ header1: 'row1-col1', header2: 'row1-col2' }); csvStream.write({ header1: 'row2-col1', header2: 'row2-col2' }); csvStream.write({ header1: 'row3-col1', header2: 'row3-col2' }); csvStream.write({ header1: 'row4-col1', header2: 'row4-col2' }); csvStream.write({ header1: 'row5-col1', header2: 'row5-col2' }); csvStream.end(); TypeScript ·
GitHub
github.com › C2FO › fast-csv › blob › main › documentation › docs › parsing › methods.mdx
fast-csv/documentation/docs/parsing/methods.mdx at main · C2FO/fast-csv
Creates a Csv Parsing Stream that can be piped or written to. This is the main entry point and is used by all the other parsing helpers. <Tabs defaultValue="ts" values={[ { label: 'TypeScript', value: 'ts', }, { label: 'JavaScript', value: 'js', ...
Author C2FO
C2fo
c2fo.github.io › fast-csv › docs › parsing › options
Options | Fast-CSV
If your CSV contains comments you can use this option to ignore lines that begin with the specified character (e.g.
GitHub
github.com › C2FO › fast-csv › blob › main › documentation › docs › formatting › options.md
fast-csv/documentation/docs/formatting/options.md at main · C2FO/fast-csv
Set to true to include a row delimiter at the end of the csv.
Author C2FO
FastCSV
fastcsv.org
Welcome to FastCSV | FastCSV
See Java Csv Comparison Project on how CSV libraries handle real-world CSV data and how FastCSV compares to other libraries. ... In big data applications: efficiently reading and writing data on a massive scale. In small data applications: serving as a lightweight library without additional dependencies. ... Preserves the starting line number (even with skipped and multi-line records) – helpful for error messages · Auto-detection of line delimiters (CRLF, LF, or CR – can also be mixed) ... This documentation is based on the latest version of FastCSV (4.x).
Repository https://github.com/osiegmar/FastCSV
C2fo
c2fo.io › fast-csv › docs › parsing › getting-started
Getting Started | Fast-CSV
fast-csv package to parse CSVs. See installation docs · TypeScript · JavaScript · Copy · import * as csv from '@fast-csv/parse'; Options - Documentation options that can be passed to parsing methods. Events - Documentation for events emitted from the parser stream.
C2fo
c2fo.github.io › fast-csv › docs › introduction › install
Installation | Fast-CSV
npm i -S fast-csv · Copy · npm i -S @fast-csv/parse · Copy · npm i -S @fast-csv/format · Edit this page · fast-csv · @fast-csv/parse ·
GitHub
github.com › C2FO › fast-csv › blob › main › README.md
fast-csv/README.md at main · C2FO/fast-csv
Fast-csv is library for parsing and formatting CSVs or any other delimited value file in node. CSV Formatting · CSV Parsing · Built using typescript. Flexible formatting and parsing options, to fit almost any scenario.
Author C2FO
Top answer 1 of 2
4
It treats each element in the array as an array, so '456' is treated as an array with the elements 4,5,6.
A strange workaround I did was to loop through the array and put each element inside its own array, so it would be:
var newArray = [];
for( var i = 0; i < tempArray.length; i++){
var arr = [];
arr.push(tempArray[i]);
newArray.push(arr);
}
And then write the "newArray".
But otherwise if you write row by row, you can put each element inside a bracket, like:
var fast_csv = fastcsv.createWriteStream();
var writeStream = fs.createWriteStream("outputfile.csv");
fast_csv.pipe(writeStream);
for(var i = 0; i < tempArray.length; i++){
fast_csv.write( [ tempArray[i] ] ); //each element inside bracket
}
fast_csv.end();
2 of 2
1
Change: tempArray.push(data[1]); to: tempArray.push([data[1]]);
writeToPath takes an array of arrays.
Docs: https://www.npmjs.com/package/fast-csv
Npmdoc
npmdoc.github.io › node-npmdoc-fast-csv › build › apidoc.html
CSV parser and writer
api documentation for fast-csv (v2.4.0) · CSV parser and writer · table of contents · module fast-csv · function fast-csv () · function fast-csv.createReadStream (options) · function fast-csv.createWriteStream (options) · function fast-csv.extended (obj) · function fast-csv.format (options) ...
FastCSV
fastcsv.org › faq
FAQ | FastCSV
With only a few kilobytes in size and zero dependencies, FastCSV is a great choice for reading and writing CSV files in Java. ... While most parts of this documentation are focused on the features of FastCSV, this section explicitly addresses some questions about features that are not supported by FastCSV or how to achieve certain tasks.
Repository https://github.com/osiegmar/FastCSV
pytz
pythonhosted.org › fastcsv
fastcsv — fastcsv 0.1.2 documentation
Its reading/writing speed is faster than standard csv module. ... (Average of 10 times trial. Measured on Python 2.7.3, Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz, tmpfs) csv module cannot treat unicode string, so if you want to properly treat CSV files that are encoded non-ascii encoding you have to wrap it to re-code the file, which is described in its documentation...