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

csvfmt

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csvfmt

A nicer command line csv tool than `cut -d , -f 1,2,3`

  • 1.0.1
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

csvfmt

A nicer command line csv tool than cut -d , -f 1,2,3

Install

This is a command line tool, so install it globally so it's available on your path:

npm install --global csvfmt

Specifying files

Provide files on the command line to parse:

$ csvfmt samples/people.csv
[ 'name', 'sex', 'age' ]
[ 'morris', 'm', '12' ]
[ 'jenna', 'f', '13' ]
[ 'yarris', 'c', '200' ]

csvfmt reads CSV files from its standard input stream if no files are specified.

Formatting

--headers parses headers, and returns objects instead of arrays:

$ csvfmt --headers samples/people.csv
{ name: 'morris', sex: 'm', age: '12' }
{ name: 'jenna', sex: 'f', age: '13' }
{ name: 'yarris', sex: 'c', age: '200' }

FAQs

Package last updated on 10 Aug 2017

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