You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -37,7 +37,7 @@ The `parseURL` function yields an object for each row with the following propert
37
37
-`errors`: array of parsing errors found in the row.
38
38
-`meta`: object with metadata about the parsing process.
39
39
40
-
The format is described on the doc pages: https://severo.github.io/csv-range/interfaces/ParseResult.html.
40
+
The format is described on the doc pages: https://severo.github.io/cosovo/interfaces/ParseResult.html.
41
41
42
42
The `row` field might contain fewer or more columns than expected, depending on the CSV content. It can be an empty array for empty rows. It's up to the user to handle these cases. The library does not trim whitespace from values, and it does not convert types.
43
43
@@ -49,19 +49,19 @@ The `meta` field provides the `delimiter` and `newline` strings, detected automa
49
49
50
50
The `parseURL` function accepts an optional second argument with options.
51
51
52
-
It can contain options for [fetching](https://severo.github.io/csv-range/interfaces/FetchOptions.html) the CSV file, for [guessing](https://severo.github.io/csv-range/interfaces/GuessOptions.html) the delimiter and newline characters, and for [parsing](https://severo.github.io/csv-range/interfaces/ParseOptions.html) the CSV content.
52
+
It can contain options for [fetching](https://severo.github.io/cosovo/interfaces/FetchOptions.html) the CSV file, for [guessing](https://severo.github.io/cosovo/interfaces/GuessOptions.html) the delimiter and newline characters, and for [parsing](https://severo.github.io/cosovo/interfaces/ParseOptions.html) the CSV content.
53
53
54
54
55
55
## Examples
56
56
57
-
Find some examples of usage below. You can also find them in the [examples](https://github.com/severo/csv-range/tree/main/examples/) directory, and run them with `npm run examples`.
57
+
Find some examples of usage below. You can also find them in the [examples](https://github.com/severo/cosovo/tree/main/examples/) directory, and run them with `npm run examples`.
58
58
59
59
### Only the first 10 rows
60
60
61
61
As the library uses async iterators, it's easy to stop parsing after a certain number of rows:
@@ -93,14 +93,14 @@ for await (const { row } of parseURL(url, { fetch: fetchOptions })) {
93
93
console.log(rows)
94
94
```
95
95
96
-
Use the `result.meta.byteOffset` and `result.meta.byteCount` fields to know the exact byte range of each parsed row, and adjust your fetching strategy accordingly. See the [examples](https://github.com/severo/csv-range/tree/main/examples/) for an in-depth look.
96
+
Use the `result.meta.byteOffset` and `result.meta.byteCount` fields to know the exact byte range of each parsed row, and adjust your fetching strategy accordingly. See the [examples](https://github.com/severo/cosovo/tree/main/examples/) for an in-depth look.
97
97
98
98
### Parse a string
99
99
100
100
You can also parse a CSV string directly with the `parseString` function:
0 commit comments