diff --git a/README.md b/README.md index aff9367..5168fd3 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,19 @@ docker run -v /home/sombochea/excel2json:/app/data -e APP_NAME="EXCEL 2 JSON" -e } ``` +# Custom Function Props +```javascript +{ + mappings: [ + { + "dataIndex": "Name", + "label": "Name" + } + ], + saveToOutput: false +} +``` + # Environment ```env diff --git a/index.js b/index.js index ffd8463..4bca17e 100644 --- a/index.js +++ b/index.js @@ -2,15 +2,7 @@ const excel2json = require("./excel2json"); // called function export excel2json -const exported = excel2json({ - mappings: [ - { - "dataIndex": "Name", - "label": "Name" - } - ], - "saveToOutput": false -}); +const exported = excel2json(); // output data from exported console.log("Output =>\n", exported);