Installation
npm install --save @types/csvrow
Summary
This package contains type definitions for csvrow (https://github.com/trentm/node-csvrow).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/csvrow.
index.d.ts
/**
* Parse a CSV row (i.e. a single row) into an array of strings.
*
* c.f. http://en.wikipedia.org/wiki/Comma-separated_values
*
* Limitations/Opinions:
* - don't support elements with line-breaks
* - leading a trailing spaces are trimmed, unless the entry is quoted
*
* @throws {TypeError} if the given CSV row is invalid
*
* @summary Parse a CSV row into an array of strings.
*/
export function parse(row: string, delimiter?: string): string[];
/**
* Serialize the given array to a CSV row.
*/
export function stringify(columns: string[], delimiter?: string): string;
/**
* Normalize the given CSV line.
*/
export function normalize(row: string): string;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by Peter Harris, and Thomas Morelli.