csv-es
Advanced tools
Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "csv-es", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "A modern, fast, RFC 4180 compliant parser for JS", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -43,3 +43,3 @@ <h1 align="center">CSV-ES</h1> | ||
```CSV.parse(csv, {options}, reviver(value, col, row)) : [entries][values]``` | ||
```CSV.parse(csv, {options}, reviver(value, row, col)) : [entries][values]``` | ||
@@ -49,4 +49,6 @@ - csv - the CSV string to parse | ||
- typed - infer types (default `false`) | ||
- reviver - a custom function to modify the output (default `(value) => value`) | ||
- reviver<sup>1</sup> - a custom function to modify the output (default `(value) => value`) | ||
*<sup>1</sup> Values for `row` and `col` are 1-based.* | ||
### Example | ||
@@ -76,3 +78,3 @@ | ||
```CSV.stringify(array, {options}, replacer(value, col, row)) : string``` | ||
```CSV.stringify(array, {options}, replacer(value, row, col)) : string``` | ||
@@ -82,4 +84,6 @@ - array - the input array to stringify | ||
- eof - add a trailing newline at the end of file (default `true`) | ||
- replacer - a custom function to modify the values (default `(value) => value`) | ||
- replacer<sup>1</sup> - a custom function to modify the values (default `(value) => value`) | ||
*<sup>1</sup> Values for `row` and `col` are 1-based.* | ||
### Example | ||
@@ -86,0 +90,0 @@ |
24544
123