{"id":18249635,"url":"https://github.com/chandq/json2excel-cli","last_synced_at":"2025-07-04T03:40:49.642Z","repository":{"id":39903646,"uuid":"247473396","full_name":"chandq/json2excel-cli","owner":"chandq","description":"多语言文件转换成中英文对照表excel文件的Node命令行工具","archived":false,"fork":false,"pushed_at":"2023-10-19T06:05:14.000Z","size":751,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-12T17:28:30.468Z","etag":null,"topics":["cli","excel","json","nodejs","xlsx"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chandq.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-15T13:37:44.000Z","updated_at":"2023-09-04T01:24:52.000Z","dependencies_parsed_at":"2023-02-05T12:32:14.836Z","dependency_job_id":null,"html_url":"https://github.com/chandq/json2excel-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandq%2Fjson2excel-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandq%2Fjson2excel-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandq%2Fjson2excel-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandq%2Fjson2excel-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chandq","download_url":"https://codeload.github.com/chandq/json2excel-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223149534,"owners_count":17095951,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","excel","json","nodejs","xlsx"],"created_at":"2024-11-05T09:40:45.985Z","updated_at":"2024-11-05T09:40:46.668Z","avatar_url":"https://github.com/chandq.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-excel-cli - 多语言资源文件转换成 excel 表\n\n[![Build Status](https://github.com/chandq/json2excel-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/chandq/json2excel-cli/actions/workflows/ci.yml)\n[![Coverage Status](https://coveralls.io/repos/github/chandq/json2excel-cli/badge.svg?branch=master)](https://coveralls.io/github/chandq/json2excel-cli?branch=master)\n[![json-excel-cli](https://img.shields.io/github/package-json/v/chandq/json2excel-cli)](https://github.com/chandq/json2excel-cli)\n[![license:MIT](https://img.shields.io/npm/l/vue.svg?sanitize=true)](https://www.npmjs.com/package/json-excel-cli#license)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo)\n[![Downloads:?](https://img.shields.io/npm/dm/json-excel-cli.svg?sanitize=true)](https://npmcharts.com/compare/json-excel-cli?minimal=true)\n\n\u003e 🦅 一个基于 node 和 xlsx 的 json 和 excel 互相转换的命令行工具\n\n### 支持中英文语言 json 或 js 文件和中英文对照表 excel 文件互相转换，提高国际化开发效率\n\n\u003e 主要功能：\n\n- 结合中文、英文资源文件生成中英文对照 excel 表（json、js =\u003e xls、xlsx）\n- 根据中文对照表转换成中文和英文资源文件（xls、xlsx =\u003e json）\n- 以原中文资源文件为依据，结合原英文资源文件和专业翻译人员提供的中英文对照表进行增量合并，生成新的中英文 json 文件（xls、xlsx，json、js =\u003e json）\n\n\u003e 应用场景\n\n- 项目工程中需要支持国际化，将工程里中英文资源 json 或 js(commonJS 导出方式) 文件转换成中英文对照表 excel 文件，提供给专业人员翻译（适合使用方式 1 的需求）\n- 专业人员翻译并提供的中英文对照表 excel 文件，转换成对应的中英文 json 文件（适合使用方式 2 的需求）\n- 以工程里持续变化的中文语言文件为依据，结合专业人员翻译并提供的中英文对照表和原英文语言 json 或 js(commonJS 导出方式)文件，进行增量合并，生成新的中英文 json 文件（适合使用方式 3 的需求）\n\n\u003e 项目依赖\n\n- nodejs\n\n\u003e 安装方式\n\n- 全局安装\n  `npm install -g json-excel-cli`\n- 升级最新版\n  `npm install -g json-excel-cli@latest`\n\n\u003e 使用方式（源文件支持相对路径和绝对路径两种输入方式）\n\n```\n1. convert language json file to excel file, Example call:\n  json2excel ../zh-cn.json ../en.json helloworld.xlsx\n2. convert excel file to language json file, Example call:\n  json2excel -r ../helloworld.xlsx\n3. incremental merge, generate new language file according to excel file and\n   source language file, Example call:\n  json2excel -m \u003c../helloworld.xlsx\u003e \u003c../source-zh-cn.json\u003e \u003c../source-en.json\u003e [helloworld]\n```\n\n## git 提交规范\n\n[git commit 规范](./.gitmessage.txt)\n\n## 其他文档\n\n[发布 node 模块](./docs/publish-node-readme.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchandq%2Fjson2excel-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchandq%2Fjson2excel-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchandq%2Fjson2excel-cli/lists"}