web-csv-toolbox 0.3.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -5
- package/lib/index.d.ts +397 -141
- package/lib/index.js +374 -179
- package/lib/index.umd.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -242,6 +242,8 @@ providing an intuitive and straightforward experience for users.
|
|
|
242
242
|
|
|
243
243
|
The `input` paramater can be a `string`, a [ReadableStream](https://developer.mozilla.org/docs/Web/API/ReadableStream)
|
|
244
244
|
of `string`s or [Uint8Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)s,
|
|
245
|
+
or a [Uint8Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) object,
|
|
246
|
+
or a [ArrayBuffer](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) object,
|
|
245
247
|
or a [Response](https://developer.mozilla.org/docs/Web/API/Response) object.
|
|
246
248
|
|
|
247
249
|
### Middle-level APIs 🧱
|
|
@@ -249,16 +251,18 @@ or a [Response](https://developer.mozilla.org/docs/Web/API/Response) object.
|
|
|
249
251
|
These APIs are optimized for **Enhanced Performance and Control**,
|
|
250
252
|
catering to users who need more detailed and fine-tuned functionality.
|
|
251
253
|
|
|
252
|
-
- **`function
|
|
253
|
-
-
|
|
254
|
+
- **`function parseString(string[, options])`**: [📑](https://kamiazya.github.io/web-csv-toolbox/functions/parseString-1.html)
|
|
255
|
+
- Efficient parsing of CSV strings.
|
|
256
|
+
- **`function parseBinary(buffer[, options])`**: [📑](https://kamiazya.github.io/web-csv-toolbox/functions/parseBinary-1.html)
|
|
257
|
+
- Parse CSV Binary of ArrayBuffer or Uint8Array.
|
|
254
258
|
- **`function parseResponse(response[, options])`**: [📑](https://kamiazya.github.io/web-csv-toolbox/functions/parseResponse-1.html)
|
|
255
259
|
- Customized parsing directly from `Response` objects.
|
|
256
260
|
- **`function parseStream(stream[, options])`**: [📑](https://kamiazya.github.io/web-csv-toolbox/functions/parseStream-1.html)
|
|
257
261
|
- Stream-based parsing for larger or continuous data.
|
|
258
|
-
- **`function parseString(string[, options])`**: [📑](https://kamiazya.github.io/web-csv-toolbox/functions/parseString-1.html)
|
|
259
|
-
- Efficient parsing of CSV strings.
|
|
260
262
|
- **`function parseStringStream(stream[, options])`**: [📑](https://kamiazya.github.io/web-csv-toolbox/functions/parseStringStream-1.html)
|
|
261
263
|
- Combines string-based parsing with stream processing.
|
|
264
|
+
- **`function parseUint8ArrayStream(stream[, options])`**: [📑](https://kamiazya.github.io/web-csv-toolbox/functions/parseUint8ArrayStream-1.html)
|
|
265
|
+
- Parses binary streams with precise control over data types.
|
|
262
266
|
|
|
263
267
|
### Low-level APIs ⚙️
|
|
264
268
|
|
|
@@ -267,7 +271,7 @@ ideal for developers looking for in-depth control and flexibility.
|
|
|
267
271
|
|
|
268
272
|
- **`class LexerTransformer`**: [📑](https://kamiazya.github.io/web-csv-toolbox/classes/LexerTransformer.html)
|
|
269
273
|
- A TransformStream class for lexical analysis of CSV data.
|
|
270
|
-
- **`class RecordAssemblerTransformer`**: [📑](https://kamiazya.github.io/web-csv-toolbox/classes/
|
|
274
|
+
- **`class RecordAssemblerTransformer`**: [📑](https://kamiazya.github.io/web-csv-toolbox/classes/RecordAssemblerTransformer.html)
|
|
271
275
|
- Handles the assembly of parsed data into records.
|
|
272
276
|
|
|
273
277
|
## Options Configuration 🛠️
|