Skip to content

Commit 02f4cfb

Browse files
authored
Merge pull request #344 from 0xflotus/master
(docs): fixed small errors
2 parents 8a2f74c + 3bdaff0 commit 02f4cfb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
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
```

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
`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:
99

10-
* Strictly follow CSV definition [RF4180](https://www.loc.gov/preservation/digital/formats/fdd/fdd000323.shtml)
10+
* Strictly follow CSV definition [RFC4180](https://www.loc.gov/preservation/digital/formats/fdd/fdd000323.shtml)
1111
* Work with millions of lines of CSV data
1212
* Provide comprehensive parsing parameters
1313
* 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.
342342

343343
```js
344344
const csv=require('csvtojson')
345-
// synchronouse
345+
// synchronous
346346
csv()
347347
.preRawData((csvRawData)=>{
348348
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
366366

367367
```js
368368
const csv=require('csvtojson')
369-
// synchronouse
369+
// synchronous
370370
csv()
371371
.preFileLine((fileLineString, lineIdx)=>{
372372
if (lineIdx === 2){
@@ -529,7 +529,7 @@ There are currently following built-in parser:
529529
* number: Convert value to number
530530
* omit: omit the whole column
531531

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).
533533

534534
Example:
535535

0 commit comments

Comments
 (0)