@types/csvrow
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/csvrow

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

4.09 kB

Total Files

5

Last publish

Collaborators

  • types