Skip to content

Commit 3bdaff0

Browse files
authored
Update csvtojson-v2.md
1 parent 41a3325 commit 3bdaff0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/csvtojson-v2.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ csv()
6464
csv()
6565
.fromFile(csvFilePath)
6666
.subscribe((json,lineNumber)=>{
67-
// process the json line in synchronouse.
67+
// process the json line in synchronous.
6868
},onError, onComplete)
6969

7070
```
@@ -194,7 +194,7 @@ const jsonArray=await csv().fromString(myCSV); // async /await
194194

195195
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.
196196

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.
198198

199199

200200
## fromFile / fromStream / fromString will not accept callback. Use `.then` instead
@@ -273,9 +273,9 @@ csv()
273273
csv()
274274
.preRawData((csvRawData)=>{
275275
var newData=csvRawData.replace('some value','another value')
276-
// synchronouse
276+
// synchronous
277277
return newData;
278-
// or asynchronousely
278+
// or asynchronously
279279
return Promise.resolve(newData);
280280
})
281281
```

0 commit comments

Comments
 (0)