Socket
Socket
Sign inDemoInstall

csv-array

Package Overview
Dependencies
1
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.12 to 0.0.13

6

package.json
{
"name": "csv-array",
"version": "0.0.12",
"version": "0.0.13",
"description": "This is a CSV parser created and made for nodeJS. Which takes a csv file and produce an array from it",

@@ -17,3 +17,5 @@ "main": "csv-array.js",

"parse csv",
"convert csv"
"convert csv",
"json",
"parser"
],

@@ -20,0 +22,0 @@ "author": "Sahasrangshu Guha",

@@ -7,7 +7,12 @@ #csv-array

## Usage Guide
### Installing
The installation is just a command
```
npm install fs
npm install csv-array
```
## Usage Guide
After installing the package you can use the "parseCSV" method as follows

@@ -35,6 +40,26 @@ ```

Then the resulting array is as follows
Then the resulting data is as follows
```json
[{"Question Statement":"this is a test question answer it?","Option 1":"answer 1","Option 2":"answer 2","Option 3":"answer3","Option 4":"answer 4","Option 5":"","Answer":"answer 2","Deficulty":"3"},{"Question Statement":"this is another test question answer it?","Option 1":"answer1,answer2","Option 2":"answer2,answer3","Option 3":"answer4,answer5","Option 4":"answer5,answer6","Option 5":"answer7,answer8","Answer":"answer1,answer2","Deficulty":"2"}]
[
{
"Question Statement":"this is a test question answer it?",
"Option 1":"answer 1",
"Option 2":"answer 2",
"Option 3":"answer3",
"Option 4":"answer 4",
"Option 5":"",
"Answer":"answer 2",
"Deficulty":"3"
},
{
"Question Statement":"this is another test question answer it?",
"Option 1":"answer1,answer2",
"Option 2":"answer2,answer3",
"Option 3":"answer4,answer5",
"Option 4":"answer5,answer6",
"Option 5":"answer7,answer8",
"Answer":"answer1,answer2",
"Deficulty":"2"
}
]
```
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