.. | ||
data | ||
.gitignore | ||
build.sh | ||
Dockerfile | ||
index.js | ||
Makefile | ||
package.json | ||
README.md |
Excel 2 Json
- Read file excel to json
- Custom mapping with custom columns
Build
bash build
OR
make build run
Example
docker run -v /my/path:/app/data --rm -it cubetiq/node-excel2json
docker run -v /home/sombochea/excel2json:/app/data -e APP_NAME="EXCEL 2 JSON" -e MAPPER_FILE="./data/mapper.json" --rm -it cubetiq/node-excel2json
Mapper Config
{
"data": [
{
"dataIndex": "Name",
"label": "Name"
},
{
"dataIndex": "Age",
"label": "Age"
}
],
"configs": {}
}
Environment
APP_NAME=custom app name
INPUT_FILE=./data/mydata.xlsx
OUTPUT_PATH=./data/outputs
MAPPER_FILE=./data/mapper.json
SHEET_NAME=Sheet1
ENCODING=utf-8