GithubHelp home page GithubHelp logo

cbrittingham / fast-csv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from c2fo/fast-csv

0.0 0.0 0.0 1.11 MB

CSV parser and formatter for node

Home Page: http://c2fo.github.io/fast-csv

License: MIT License

JavaScript 1.84% TypeScript 98.16%

fast-csv's Introduction

npm version Build Status Coverage Status Known Vulnerabilities

Fast-csv

Fast-csv is library for parsing and formatting csvs or any other delimited value file in node.

Installation

npm install -S fast-csv

Documentation

Quick Examples

parsing

To read a csv with headers create a read stream and pipe it to parser.

fs.createReadStream('path/to/my.csv')
  .pipe(csv.parse({ headers: true }))
  .on('data', row => console.log(row))

For more in depth parsing examples and docs check out the parsing docs

formatting

To format a csv you can write rows to a formatter.

someStream
  .pipe(csv.format({ headers: true })
  .pipe(process.stdout);

For more in depth formatting examples and docs check out the formatting docs

Migrating from older versions

License

MIT https://github.com/C2FO/fast-csv/raw/master/LICENSE

Meta

fast-csv's People

Contributors

doug-martin avatar dustinsmith1024 avatar derjust avatar jonstacks avatar adamvoss avatar ovax3 avatar adammichaelwilliams avatar asabhaney avatar akinjide avatar nielk avatar alexandrusavin avatar bernhard-jung avatar cbrittingham avatar chrisantaki avatar icedawn avatar montera82 avatar emk avatar gggauravgandhi avatar jkc avatar vikeen avatar josemigallas avatar katee avatar salguerooo avatar liammaier avatar mdoelker avatar technotronicoz avatar olleolleolle avatar rajit avatar rubenamaury avatar bryant1410 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.