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
Worker feature makes sense to Command Line where it could utilize multiple CPU cores to speed up processing large csv file. However, it does not quite work as expected mainly because cooperation of multiple processes' result is very complex. Also the inter process communication adds too much overhead which minimize the benefit gained from spawning workers.
196
196
197
-
Thus in verions`2.0.0` I decided to temporarily remove `Worker` feature and will re-think how to better utilize multiple CPU Cores.
197
+
Thus in version`2.0.0` I decided to temporarily remove `Worker` feature and will re-think how to better utilize multiple CPU Cores.
198
198
199
199
200
200
## fromFile / fromStream / fromString will not accept callback. Use `.then` instead
@@ -273,9 +273,9 @@ csv()
273
273
csv()
274
274
.preRawData((csvRawData)=>{
275
275
var newData=csvRawData.replace('some value','another value')
Copy file name to clipboardExpand all lines: readme.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
8
8
`csvtojson` module is a comprehensive nodejs csv parser to convert csv to json or column arrays. It can be used as node.js library / command line tool / or in browser. Below are some features:
* Provide out of box CSV parsing tool for Command Line
@@ -342,7 +342,7 @@ the hook -- `preRawData` will be called with csv string passed to parser.
342
342
343
343
```js
344
344
constcsv=require('csvtojson')
345
-
//synchronouse
345
+
//synchronous
346
346
csv()
347
347
.preRawData((csvRawData)=>{
348
348
var newData=csvRawData.replace('some value','another value');
@@ -366,7 +366,7 @@ The function is called each time a file line has been parsed in csv stream. The
366
366
367
367
```js
368
368
constcsv=require('csvtojson')
369
-
//synchronouse
369
+
//synchronous
370
370
csv()
371
371
.preFileLine((fileLineString, lineIdx)=>{
372
372
if (lineIdx ===2){
@@ -529,7 +529,7 @@ There are currently following built-in parser:
529
529
* number: Convert value to number
530
530
* omit: omit the whole column
531
531
532
-
This will override types infered from `checkType:true` parameter. More built-in parsers will be added as requested in [issues page](https://github.com/Keyang/node-csvtojson/issues).
532
+
This will override types inferred from `checkType:true` parameter. More built-in parsers will be added as requested in [issues page](https://github.com/Keyang/node-csvtojson/issues).
0 commit comments