]> git.ardis.lu - csvio/commit
Allow Array<any> and TransformationFunction as inputs to handle headers
authorArdis Lu <ardisglu@gmail.com>
Fri, 24 Jan 2025 03:47:14 +0000 (19:47 -0800)
committerArdis Lu <ardisglu@gmail.com>
Fri, 24 Jan 2025 03:47:14 +0000 (19:47 -0800)
commit01bf4a65181750ff1c59f8e4f9e4561232e22990
treef5690ef80c4aa430288c9f451002aee526d10946
parent30ba142f4d7b6ef648d48ee4485be6d6a054ef0d
Allow Array<any> and TransformationFunction as inputs to handle headers

This change simplifies the common tasks of (1) renaming headers (just pass the new header array) and (2) appending headers (pass a one-line TransformationFunction). Setting the option to a boolean is the same behavior as includeHeaders.
examples/ex1_2.js
examples/ex1_3.js
examples/ex1_4.js
examples/ex3_1.js
examples/ex3_2.js
src/core.js
test/core.test.js
This page took 0.04096 seconds and 4 git commands to generate.