From 6bcc05d365d94247abd03c7a10ed6b7919ba131e Mon Sep 17 00:00:00 2001 From: AntoineGrandchamp Date: Thu, 29 Aug 2019 10:56:33 -0400 Subject: [PATCH 1/2] Can specify file encoding --- README.md | 5 +++-- src/index.js | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7213984..d020d2c 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![npm version](https://badge.fury.io/js/react-csv-reader.svg)](https://www.npmjs.com/package/react-csv-reader) [![npm](https://img.shields.io/npm/dt/react-csv-reader.svg)](https://www.npmjs.com/package/react-csv-reader) -React component that handles csv file input. +React component that handles csv file input. It handles file input and returns its content as a matrix. You can try it out in a [demo on Codesandbox](https://codesandbox.io/s/5058ln02lx). @@ -62,11 +62,12 @@ ReactDOM.render(, document.getElementById('root')) | cssClass | string | `csv-reader-input` | A CSS class to be applied to the wrapper element. | | cssInputClass | string | `csv-input` | A CSS class to be applied to the `` element. | | label | string, element | | If present, it will be rendered in a `