csv-to-js-parser
Advanced tools
Comparing version 2.1.2 to 2.1.3
{ | ||
"name": "csv-to-js-parser", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "Converting csv data into array of JavaScript objects. This module can group data from input tables.", | ||
@@ -5,0 +5,0 @@ "main": "app.js", |
@@ -177,2 +177,3 @@ # Преобразование данных csv в объекты JavaScript | ||
Код работы с этой функцией для примера из таблицы 1: | ||
@@ -190,3 +191,3 @@ ```javascript | ||
Результат работы функции combineArrays для нашего примера из таблицы 1 представлен ниже: | ||
Результат работы функции combineArrays для примера из таблицы 1 представлен ниже: | ||
@@ -193,0 +194,0 @@ ```javascript |
@@ -178,2 +178,4 @@ # Convert csv data to an array of JavaScript objects | ||
The code for working with this function for the example from table 1: | ||
```javascript | ||
@@ -292,7 +294,7 @@ const combineArrays = require('csv-to-js-parser').combineArrays; | ||
The result of this function will be the initial object obtained from csvToObj. | ||
The result of this function will be the initial array of objects obtained from csvToObj. | ||
### Saving in JSON format | ||
To save objects obtained from csvToObj or combineArrays functions to a file, you can use the built-in node.js function JSON.stringify(). | ||
To save objects from csvToObj or combineArrays functions to a file, you can use the built-in node.js function JSON.stringify(). | ||
@@ -317,5 +319,5 @@ ```javascript | ||
* delimeter: column delimiter in the output table. | ||
* rowDelimeter [optional]: line separator. If not specified, then the default is "LF" (\n). For windows, it is reasonable to specify the "CRLF" delimiter (\r\n). | ||
* rowDelimeter [optional]: rows separator. If not specified, then the default is "LF" (\n). For windows, it is reasonable to specify the "CRLF" delimiter (\r\n). | ||
## MIT License | ||
https://github.com/Mendeo/csv-to-js-parser/blob/master/LICENSE |
Sorry, the diff of this file is not supported yet
54953
320