From 07dfd145b9e0421fe9ffe296e4d6950c974d8eda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joa=CC=83o=20Sardinha?= <johnsardine@gmail.com> Date: Thu, 25 Oct 2018 12:28:50 +0100 Subject: [PATCH] Update docs to include transformHeader config --- docs/docs.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/docs.html b/docs/docs.html index 68f1132..c850f53 100644 --- a/docs/docs.html +++ b/docs/docs.html @@ -341,6 +341,7 @@ var csv = Papa.unparse({ escapeChar: '"', header: false, trimHeaders: false, + transformHeader: undefined, dynamicTyping: false, preview: 0, encoding: "", @@ -418,6 +419,14 @@ var csv = Papa.unparse({ If true leading/trailing spaces will be trimed from headers. </td> </tr> + <tr> + <td> + <code>transformHeader</code> + </td> + <td> + A function to apply on each header. Requires <code>header</code> to be <code>true</code>. The function receives the header as its first argument. The <code>transformHeader</code> function is applied after <code>trimHeaders</code> if enabled. + </td> + </tr> <tr> <td> <code>dynamicTyping</code>