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

csv-table

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csv-table

Prints a table out of the pointed CSV file.

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

CSV-Table

Build Status

Install

$ npm install -g csv-table

CLI

$ csv-table [options] <file ...>

Options

-h, --help                  output usage information
-V, --version               output the version number
-d, --delimiter <value>     Sets the delimiter, defaults to ';'
-c, --columns               Use CSV columns headers
-t, --trim                  trim values
-l, --ltrim                 left trim values
-r, --rtrim                 right trim values
-s, --skip                  skip empty lines
-q, --quote <value>         Quote character, defaults to '"'
-m, --comment <value>       Comment character, default is none
-e, --escape <value>        Escape character, default is '"'
-r, --rowDelimiter <value>  Row delimiter character, default is '\n'

API

var csvTable = require( "csv-table" );

csvTable( csv_file [, options] [, callback] );

// Example:
csvTable( "./data.csv", { columns: true }, function( table, obj ) {
	// table is the string representation of the table
	console.log( table );

	// obj is the object representation of the tablified csv
	console.log( obj );
});

If no callback is given, it prints the table to the console/stdout.

Options:

With default values:

{
	delimiter: ';',
	columns: false,
	trim: false,
	ltrim: false,
	rtrim: false,
	skip_empty_values: false,
	quote: '"'
	comment: '',
	escape: '"',
	rowDelimiter: '\n'
}

Contributing:

Check out the contributing file

Keywords

FAQs

Package last updated on 29 Jul 2014

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