Skip to content

Commit 0b6cbca

Browse files
committed
Mention json-csv-kit ecosystem usage
1 parent ca80ca8 commit 0b6cbca

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,20 @@ const html = renderJsonToHtml(getPathEntries(payload), {
100100

101101
For report tables, use `array-table-kit` when you need Markdown or plain HTML table output instead of a nested JSON viewer.
102102

103+
For CSV exports from the same records, use `json-csv-kit`:
104+
105+
```ts
106+
import { jsonToCsv } from 'json-csv-kit';
107+
import { renderJsonToHtml } from 'json-html-kit';
108+
109+
const html = renderJsonToHtml(rows, {
110+
theme: 'clean',
111+
tableMode: 'auto'
112+
});
113+
114+
const csv = jsonToCsv(rows);
115+
```
116+
103117
## API
104118

105119
### `renderJsonToHtml(value, options?)`

0 commit comments

Comments
 (0)