calpine-node/examples/excel2json
Sambo Chea 336f5b69a5
Update README.md
2021-03-29 19:03:57 +07:00
..
data Add example for excel to json with mapper from file and add docker support 2021-03-29 17:32:54 +07:00
.gitignore Add example for excel to json with mapper from file and add docker support 2021-03-29 17:32:54 +07:00
build.sh Updated the script and volumn for container 2021-03-29 17:46:28 +07:00
Dockerfile Updated workdir 2021-03-29 17:50:02 +07:00
index.js Add custom sheet and encoding 2021-03-29 18:35:49 +07:00
Makefile Add example for excel to json with mapper from file and add docker support 2021-03-29 17:32:54 +07:00
package.json Add example for excel to json with mapper from file and add docker support 2021-03-29 17:32:54 +07:00
README.md Update README.md 2021-03-29 19:03:57 +07:00

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

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