Updated and add readme with custom props

This commit is contained in:
Sambo Chea 2021-03-30 09:18:01 +07:00
parent 9fd46088d5
commit 350823ec40
2 changed files with 14 additions and 9 deletions

View File

@ -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 # Environment
```env ```env

View File

@ -2,15 +2,7 @@
const excel2json = require("./excel2json"); const excel2json = require("./excel2json");
// called function export excel2json // called function export excel2json
const exported = excel2json({ const exported = excel2json();
mappings: [
{
"dataIndex": "Name",
"label": "Name"
}
],
"saveToOutput": false
});
// output data from exported // output data from exported
console.log("Output =>\n", exported); console.log("Output =>\n", exported);