Fixed cli and package for unknow cli

This commit is contained in:
Sambo Chea 2021-03-30 18:37:03 +07:00
parent 2b170c9bc0
commit f65301ce4d
3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# excel2json # excel2json-xlsx
[![Node.js Package](https://github.com/CUBETIQ/excel2json/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/CUBETIQ/excel2json/actions/workflows/npm-publish.yml) [![Node.js Package](https://github.com/CUBETIQ/excel2json/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/CUBETIQ/excel2json/actions/workflows/npm-publish.yml)
[![Docker CI](https://github.com/CUBETIQ/excel2json/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/CUBETIQ/excel2json/actions/workflows/docker-publish.yml) [![Docker CI](https://github.com/CUBETIQ/excel2json/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/CUBETIQ/excel2json/actions/workflows/docker-publish.yml)
![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/cubetiq/excel2json) ![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/cubetiq/excel2json)

View File

@ -1,7 +1,7 @@
#!/usr/bin/env node #!/usr/bin/env node
const yargs = require("yargs"); const yargs = require("yargs");
const excel2json = require("./../excel2json"); const excel2json = require("./../index");
const options = yargs const options = yargs
.usage("Usage: -i <input> -o <output> -m <mapper>") .usage("Usage: -i <input> -o <output> -m <mapper>")

View File

@ -1,6 +1,6 @@
{ {
"name": "excel2json-xlsx", "name": "excel2json-xlsx",
"version": "1.0.5", "version": "1.0.6",
"keywords": [ "keywords": [
"excel", "excel",
"json", "json",
@ -11,7 +11,7 @@
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },
"bin": "bin/cli.js", "bin": "./bin/cli.js",
"description": "Excel to JSON, able to export JSON from Excel (xlsx)", "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"