From 53a9ef5270129b1d577609d5300f2cf74d7bcf1c Mon Sep 17 00:00:00 2001 From: abdennour Date: Sat, 26 Nov 2016 07:53:49 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89=20beautify=20=F0=9F=93=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cb62679..207169f 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,8 @@ This package includes actually two components: `CSVLink` and `CSVDownload`. The two components accepts the following `Props`: -- **data** : a required property that represents the CSV data. +### - **data** Props: +a required property that represents the CSV data. This data can be *array of arrays*, *array of literal objects* or *string*. **.i.e (array of arrays)** @@ -68,7 +69,9 @@ data = json2csv(arrayOfLiteralObjects); ``` -- **headers** : Specifying `headers` helps to define an order of CSV fields , so , the csv content will be generated accordingly. +### - **headers** Props: + + Specifying `headers` helps to define an order of CSV fields , so , the csv content will be generated accordingly. > Notes : > - The meaning of headers with data of type `Array` is to order fields AND prepend those headers at the top of CSV content.