mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
chore(csv): remove redundant constructor examples (#5509)
chore(csv): remove constructor examples
This commit is contained in:
parent
94c3949718
commit
482d28ac11
@ -138,19 +138,6 @@ export class CsvParseStream<
|
||||
#headers: readonly string[] = [];
|
||||
|
||||
/** Construct a new instance.
|
||||
*
|
||||
* @example Usage
|
||||
* ```ts no-assert
|
||||
* import { CsvParseStream } from "@std/csv/parse-stream";
|
||||
*
|
||||
* const source = ReadableStream.from([
|
||||
* "name,age",
|
||||
* "Alice,34",
|
||||
* "Bob,24",
|
||||
* "Charlie,45",
|
||||
* ]);
|
||||
* const parts = source.pipeThrough(new CsvParseStream());
|
||||
* ```
|
||||
*
|
||||
* @param options Options for the stream.
|
||||
*/
|
||||
|
@ -54,25 +54,6 @@ export class CsvStringifyStream<TOptions extends CsvStringifyStreamOptions>
|
||||
/**
|
||||
* Construct a new instance.
|
||||
*
|
||||
* @example Usage
|
||||
* ```ts no-assert
|
||||
* import { CsvStringifyStream } from "@std/csv/stringify-stream";
|
||||
*
|
||||
* const path = await Deno.makeTempFile();
|
||||
*
|
||||
* const file = await Deno.open(path, { create: true, write: true });
|
||||
* const readable = ReadableStream.from([
|
||||
* { id: 1, name: "one" },
|
||||
* { id: 2, name: "two" },
|
||||
* { id: 3, name: "three" },
|
||||
* ]);
|
||||
*
|
||||
* await readable
|
||||
* .pipeThrough(new CsvStringifyStream({ columns: ["id", "name"] }))
|
||||
* .pipeThrough(new TextEncoderStream())
|
||||
* .pipeTo(file.writable);
|
||||
* ```
|
||||
*
|
||||
* @param options Options for the stream.
|
||||
*/
|
||||
constructor(options?: TOptions) {
|
||||
|
Loading…
Reference in New Issue
Block a user