Updated the package and add function and declared type

This commit is contained in:
Sambo Chea 2021-03-30 10:16:49 +07:00
parent 38f243e2e8
commit d52568ec57
2 changed files with 14 additions and 2 deletions

12
excel2json.d.ts vendored Normal file
View File

@ -0,0 +1,12 @@
interface Excel2JsonProps {
mappings?: Array<any>;
saveToOutput?: boolean;
outputPath?: string;
outputName?: string;
sheetName?: string;
inputFile?: string;
mapperFile?: string;
encoding?: string;
}
declare function excel2json(props: Excel2JsonProps);

View File

@ -1,7 +1,7 @@
{ {
"name": "excel2json", "name": "excel2json-xlsx",
"version": "1.0.0", "version": "1.0.0",
"description": "Excel to json", "description": "Excel to JSON, able to export JSON from Excel (xlsx)",
"repository": { "repository": {
"url": "https://github.com/CUBETIQ/excel2json.git" "url": "https://github.com/CUBETIQ/excel2json.git"
}, },