csv.js.org
Open in
urlscan Pro
2606:4700:20::681a:954
Public Scan
Submitted URL: http://csv.js.org/
Effective URL: https://csv.js.org/
Submission: On March 19 via api from US — Scanned from DE
Effective URL: https://csv.js.org/
Submission: On March 19 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
CSV FOR NODE.JS IssuesGitHub generateparsetransformstringify Comprehensive CSV suite combining 4 well tested packages to generate, parse, transform and stringify CSV data. CSV-GENERATE Write random and user-defined strings, objects and arrays CSV-PARSE Read CSV strings and buffers and write object and arrays STREAM-TRANSFORM Read and write objects and arrays CSV-STRINGIFY Read object and arrays and write CSV strings CSV & JSON CONVERTOR TOOL This is a full-featured CSV parsing tool running entirely on your browser. No data leave your computer ! Use it also to learn how to use our packages and to test the various options interactively. LATEST NEWS NEW `COMMENT_NO_INFIX` OPTION. By wdavidw | August 25th, 2023 Version 5.5.0 of csv-parse include the new [`comment_no_infix` option](/parse/options/comment_no_infix/). When activate, comments may only start at the begining of a line. CSV PACKAGE VERSION 6 WITH ECMASCRIPT MODULES SUPPORT By wdavidw | November 13th, 2021 Version 6 of the csv package for Node.js is released along its sub projects. Read about the new features and the breaking changes (fr) introduced by this new version. MIGRATING ALL THE PROJECTS AS ONE GIT MONOREPO. By wdavidw | August 27th, 2021 A few weeks ago, we migrated the 5 repositories in one Git monorepo. If interested in the details, read our article on how we merged the repositories while preserving the commit history. TRY THE NEW CSV & JSON CONVERSION TOOL! By wdavidw | January 15th, 2019 We just published a new conversion tool which takes a CSV input and convert it to JSON. Use it as a playground to learn how to use our packages, test your options interactively or as a full-featured CSV parsing tool. CSV STRINGIFY 5.1.0 By wdavidw | December 5th, 2018 Casting user functions are now called with a context object. The initial properties are "column", "header", "index", "records". CSV 5.0.0 By wdavidw | November 21th, 2018 Version 5.0.0 includes the latest csv-parse and csv-stringify respectively with version 4.0.1 and 5.0.0. CSV STRINGIFY 5.0.0 By wdavidw | November 21th, 2018 Version 5.0.0 introduces the new quoted_match option and support options written both in the underscore and camelcase forms. Some options were renamed. Thus rowDelimiter is now record_delimiter and formatters is now cast. Read the changelog! CSV PARSE 4.0.0 - RE-WRITING AND PERFORMANCE By wdavidw | November 19th, 2018 Version 4.0.0 is a complete re-writing of the project focusing on performance. It also comes with new functionalities as well as some cleanup in the option properties and the exported information. The official website is updated and the changelog contains the list of changes for this major release. Learn more! QUICK SYNC EXAMPLE import assert from "node:assert"; import { generate, parse, transform, stringify } from "csv/sync"; // Run the pipeline const input = generate({ seed: 1, columns: 2, length: 2 }); const rawRecords = parse(input); const refinedRecords = transform(rawRecords, (data) => data.map((value) => value.toUpperCase()) ); const output = stringify(refinedRecords); // Print the final result assert.equal(output, `OMH,ONKCHHJMJADOA D,GEACHIN `); QUICK STREAM PIPE EXAMPLE // Import the package import * as csv from 'csv'; // Run the pipeline csv // Generate 20 records .generate({ delimiter: '|', length: 20 }) // Transform CSV data into records .pipe(csv.parse({ delimiter: '|' })) // Transform each value into uppercase .pipe(csv.transform((record) => record.map((value) => value.toUpperCase() ) )) // Convert objects into a stream .pipe(csv.stringify({ quoted: true })) // Print the CSV stream to stdout .pipe(process.stdout); NAVIGATE * Generate * Parse * Transform * Stringify CONTRIBUTE * How to contribute * GitHub * Issue Tracker * License ABOUT The Node.js CSV project is an open source product hosted on GitHub and developed by Adaltas. PROJECT * Homepage * Convertor * API * Stream * Callback * Sync * Getting started * Distributions * Node.js ESM * Node.js CJS * Browser ESM * Browser IIFE * Examples * File system interaction * License * Changelog * Community GENERATE * Usage * Distributions * Node.js ESM * Browser ESM * Browser IIFE * Node.js CJS * API * Examples * Options * Change log PARSE * Usage * Distributions * Node.js ESM * Node.js CJS * Browser ESM * Browser IIFE * API * Stream * Callback * Sync * Stream + dataset * Async iterator * Examples * Stream pipe * Promises usage * File system interaction * Async iterator * Options * bom * cast * cast_date * columns * comment * comment_no_infix * delimiter * encoding * escape * from * from_line * group_columns_by_name * ignore_last_delimiters * info * ltrim * max_record_size * objname * on_record * quote * raw * record_delimiter * relax_column_count * relax_column_count_less * relax_column_count_more * relax_quotes * rtrim * skip_empty_lines * skip_records_with_empty_values * skip_records_with_error * to * to_line * trim * Info properties * Errors * Change log TRANSFORM * Usage * Distributions * Node.js ESM * Node.js CJS * Browser ESM * Browser IIFE * API * Stream * Callback * Stream + callback * Sync * Options * Handler * State * Change log STRINGIFY * Usage * Distributions * Node.js ESM * Node.js CJS * Browser ESM * Browser IIFE * API * Stream * Sync * Stream + dataset * Callback * Async iterator * Examples * Options * bom * cast * columns * delimiter * eof * escape * escape_formulas * header * quote * quoted * quoted_empty * quoted_match * quoted_string * record_delimiter * Change log Help us improve the docs by proposing enhancements and fixing typos.