Socket
Socket
Sign inDemoInstall

csv2array

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    csv2array

Sync CSV parser.


Version published
Weekly downloads
224
increased by7.69%
Maintainers
1
Install size
31.4 kB
Created
Weekly downloads
 

Readme

Source

Sync CSV parser.

Install

npm install csv2array

Usage

csv2array(csv_string, opts)

opts.delimiter (string): value delimiter to use    
opts.skipwhitespace (boolean): ignore whitespaces between commas

Example

var csv2array = require('csv2array');
var arr = csv2array('"a", "b", "c"\n"d","e","f"');

Credit

Code taken from jquery.csv plugin.

Keywords

FAQs

Last updated on 20 Mar 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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