Giter Club home page Giter Club logo

Comments (3)

kcbanner avatar kcbanner commented on May 22, 2024

Ah, the parameter needed to be flags and not flag as mentioned in the readme.

from node-csv.

d-adamkiewicz avatar d-adamkiewicz commented on May 22, 2024

On my vista/cygwin box when {flags:'a'} (thanks for the tip;) next appending starts from last line (not a new one) say
last (and only) line is:
3,'ala','ma','kota'
after next appending this file will be:
3,'ala','ma','kota',4,'ola','ma','psa'
5,'janek','ma','szczura'
notice: these should be a 3 lines while there are 2

from node-csv.

wdavidw avatar wdavidw commented on May 22, 2024

Sorry about the delay, i missed this report while i was on hollidays. I just updated the readme to fix the flags typo. Considering Adam comment, this is somewhat expected since the last line of the csv isn't ended by a line break. I'm not sure what to do with this one, but a solution would be sth like:

var test = csv()
.transform(function(data, index){
    if(index===0){
        test.write('\n',true);
    }
    return data;
})
...;

from node-csv.

Related Issues (20)

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.