Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

csv-to-js-parser

Package Overview
Dependencies
0
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.2 to 2.1.3

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc