Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

csv-parser-generator

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csv-parser-generator

Generates CSV Parsers based on rules

  • 1.0.13
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

CSV Parser Generator

An extremely simple and fast CSV parser generator. This is meant to be a building block for CSV parsers and other things that need to parse CSV.

This module generates a parser based on the arguments passed, which then will parse a single line, returning all fields it can find.

Installing

$ npm install csv-parser-generator

Usage

var generator = require('csv-parser-generator');

var parser = generator({ delimiter: " " });
parser.parse('"foo bar" bar baz');

Options

  • delimiter - which delimiter to split on
  • strip-whitespace - if this is set to true, will automatically strip any whitespace on either side of the column
  • ignore-quotes - if this is set to true, parsing will completely ignore all quotation marks and not treat them as special containers of fields, e.g. "hello, world" would parse out as "hello",_" world".

Keywords

FAQs

Package last updated on 20 May 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc