excel-csv-handler 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "excel-csv-handler",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A Node.js utility to read/write Excel and CSV files with GBK encoding support",
|
|
5
|
-
"main": "index.js",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"types": "src/excel-csv-handler.d.ts",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"scripts": {
|
|
8
9
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/excel-csv-handler.d.ts
|
|
2
|
+
export default class ExcelCsvHandler {
|
|
3
|
+
read(
|
|
4
|
+
filePath: string,
|
|
5
|
+
headerRow?: number
|
|
6
|
+
): Promise<Array<Record<string, string>>>;
|
|
7
|
+
write(
|
|
8
|
+
filePath: string,
|
|
9
|
+
data: Array<Record<string, any>>,
|
|
10
|
+
headers?: string[] | null
|
|
11
|
+
): Promise<void>;
|
|
12
|
+
}
|
|
Binary file
|
|
File without changes
|