@iwsio/json-csv-core
Advanced tools
Comparing version
@@ -1,2 +0,2 @@ | ||
export type Field = { | ||
export interface Field { | ||
name: string; | ||
@@ -12,8 +12,8 @@ label?: string; | ||
quoted?: boolean; | ||
}; | ||
} | ||
export type FieldList = Field[]; | ||
export type ExportOptions = { | ||
export interface ExportOptions { | ||
fieldSeparator?: string; | ||
fields: FieldList; | ||
ignoreHeader: boolean; | ||
}; | ||
} |
@@ -1,2 +0,2 @@ | ||
Copyright (c) 2023, Nathan Bridgewater / Integrated Web Systems, LLC | ||
Copyright (c) 2025, Nathan Bridgewater / Integrated Web Systems, LLC | ||
@@ -3,0 +3,0 @@ All rights reserved. |
{ | ||
"name": "@iwsio/json-csv-core", | ||
"version": "1.2.0", | ||
"version": "1.2.2", | ||
"description": "Easily convert JSON to CSV. This is a core library built for browser and node to support buffered conversion to CSV.", | ||
@@ -47,4 +47,4 @@ "keywords": [ | ||
"rimraf": "^6.0.1", | ||
"typescript": "^5.7.2" | ||
"typescript": "^5.8.3" | ||
} | ||
} |
@@ -22,3 +22,3 @@ # @iwsio/json-csv-core | ||
```typescript | ||
declare toCsv = (data: any[], options: ExporterOptions) => string; | ||
declare function toCsv(data: Record<string, unknown>[], opts: Partial<ExportOptions>): string; | ||
``` | ||
@@ -25,0 +25,0 @@ |
13336
0.24%