1.0.11 • Published 2 years ago

excel-to-json-parser v1.0.11

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

build

⚡ Why need this?

i18n messages is stored in Excel file, but it is not easy to edit in your code. So, this tool is created to convert Excel to JSON.

📜 Features

Excel data structure is converted to JSON. The key of the first column of the first row is required.

keyzh_CNzh_HKenand more languages...
hello你好你好hello...
world世界世界world!...

output JSON:

{
   "zh_CN": {
        "hello": "你好",
        "world": "世界",
    },
    "zh_HK": {
        "hello": "你好",
         "world": "世界",
    },
    "en": {
        "hello": "hello",
         "world": "world!",
    }
}

🌈 Installation

Using npm:

$ npm install -g excel-to-json-parser

Using yarn:

$ yarn global add excel-to-json-parser

🔥 Usage

run etj --help without arguments to see list of options:

Usage: etj --sourceFile <dir>

Options:
  -V, --version           output the version number
  -s, --sourceFile <dir>  source file path need to be converted
  -h, --help              display help for command

use CLI

etj --sourceFile /yourdir/example.xlsx
// or
etj -s /yourDir/example.xlsx

🔧 Examples

run example

yarn example

©️ License

MIT

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago