Coder Social home page Coder Social logo

node-csv-docs's Introduction

Node CSV documentation website

The repository contains the source code generating the website of the Node.js CSV project.

Developers

To start a local instance of the website with yarn:

yarn install
yarn run develop

To fetch the latest source code of the project:

git submodule update --rebase --remote

node-csv-docs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

node-csv-docs's Issues

Make docs searchable

Currently there's no way to search the docs site. Most modern project docs have a search box that indexes the content.

Explain clearly that INVALID_OPENING_QUOTE error can be caused due to BOM character

We've been stuck with the INVALID_OPENING_QUOTE error for days due to first row of CSV file starting with a quote:
"1800","2000 5","2000","2000 6","2000 4","2000 2","2000 3","2000 1","2500"

Apparently this was because of the BOM character and setting bom:true fixed the issue:
https://csv.js.org/parse/options/bom/

I highly recommend to add a clear explanation in the docs that INVALID_OPENING_QUOTE might be caused by not applying bom:true when files are UTF.

Ideally the library should recognise encoding / BOM character automatically by default (if possible) and enable the bom:true parameter should be handled automatically.

Otherwise this causes unexpected behavior in production when someone gives a file which starts with a quote in the first value.

Errors in 'File system interaction' page for csv-parse

There's a couple of errors in the sync example at the bottom of this page: https://csv.js.org/parse/recipies/file_interaction/

The path to the parse module is incorrect our outdated. const parse = require('csv-parse/lib/parse') should changed to `const parse = require('csv-parse/lib/sync')'.

The for loop should use 'for of' instead of 'for in' otherwise, you'll only get the indices of records written to the console: for(let record in records).

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.