1.0.15 • Published 10 years ago

node-csv-pivot v1.0.15

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

node-csv-pivot

pivot a csv

build status

Installation

This commandline tool is installed via npm:

$ npm install -g node-csv-pivot

Example Usage

csvpivot -c sampleConfig.json

Example Input

  2039;20131111;00:00;5.9;84.0
  2039;20131111;01:00;5.9;85.0
  2039;20131111;02:00;5.8;86.0
  2039;20131111;03:00;5.6;87.0
  2039;20131111;04:00;5.3;89.0
  2039;20131111;05:00;5.5;91.0
  2039;20131111;06:00;5.2;90.0
  2039;20131111;07:00;3.7;89.0
  2039;20131111;08:00;4.9;87.0
  2039;20131111;09:00;6.6;84.0
  2039;20131111;10:00;7.1;82.0
  2039;20131111;11:00;7.4;78.0
  
  2039;20131111;13:00;7.4;74.0
  2039;20131111;14:00;7.6;74.0
  2039;20131111;15:00;6.6;83.0
  2039;20131111;16:00;4.8;86.0
  2039;20131111;17:00;5.5;76.0
  2039;20131111;18:00;5.3;73.0
  2039;20131111;19:00;5.9;68.0
  2039;20131111;20:00;6.0;68.0
  2039;20131111;21:00;5.9;68.0
  2039;20131111;22:00;5.9;67.0
  2039;20131111;23:00;5.4;68.0

Exapmple output

2039,20131111,5.9,5.9,5.8,5.6,5.3,5.5,5.2,3.7,4.9,6.6,7.1,7.4,,7.4,7.6,6.6,4.8,5.5,5.3,5.9,6.0,5.9,5.9,5.4

Example config

{"pivotAttributes" : ["00:00","01:00","02:00","03:00","04:00","05:00","06:00","07:00","08:00","09:00","10:00","11:00","12:00",
                      "13:00","14:00","15:00","16:00","17:00","18:00","19:00","20:00","21:00","22:00","23:00"],
    "separator": ";",
    "keyCols": [0, 1],
    "nAttributeCol" : 2,
    "nValueCol": 5}
1.0.15

10 years ago

1.0.14

10 years ago

1.0.12

10 years ago

1.0.11

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago