diff --git a/docs/docs.html b/docs/docs.html index 3adde71..8df3971 100644 --- a/docs/docs.html +++ b/docs/docs.html @@ -536,11 +536,11 @@ var csv = Papa.unparse({ decoder - A function which allows custom decoding for the buffer string. - The function get Buffer and Encoding, and returns a string. + A function which allows custom decoding of the chunk. + The function get Chunk (Buffer/string) and Encoding, and returns a string. i.e assuming const iconv = require('iconv-lite'): - (buf , encoding) => { - if (iconv.encodingExists(encoding)) { return iconv.decode(buf, encoding) }; + (chunk , encoding) => { + if (iconv.encodingExists(encoding)) { return iconv.decode(chunk, encoding) }; throw new TypeError('[ERR_UNKNOWN_ENCODING]', 'Unknown encoding: ' + encoding) }