npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

json-excel-cli

v1.0.22

Published

🦅 Support multi-language file and Chinese-English comparison table excel file conversion

Downloads

22

Readme

json-excel-cli - 多语言资源文件转换成 excel 表

Build Status Coverage Status json-excel-cli license:MIT XO code style Downloads:?

🦅 一个基于 node 和 xlsx 的 json 和 excel 互相转换的命令行工具

支持中英文语言 json 或 js 文件和中英文对照表 excel 文件互相转换,提高国际化开发效率

主要功能:

  • 结合中文、英文资源文件生成中英文对照 excel 表(json、js => xls、xlsx)
  • 根据中文对照表转换成中文和英文资源文件(xls、xlsx => json)
  • 以原中文资源文件为依据,结合原英文资源文件和专业翻译人员提供的中英文对照表进行增量合并,生成新的中英文 json 文件(xls、xlsx,json、js => json)

应用场景

  • 项目工程中需要支持国际化,将工程里中英文资源 json 或 js(commonJS 导出方式) 文件转换成中英文对照表 excel 文件,提供给专业人员翻译(适合使用方式 1 的需求)
  • 专业人员翻译并提供的中英文对照表 excel 文件,转换成对应的中英文 json 文件(适合使用方式 2 的需求)
  • 以工程里持续变化的中文语言文件为依据,结合专业人员翻译并提供的中英文对照表和原英文语言 json 或 js(commonJS 导出方式)文件,进行增量合并,生成新的中英文 json 文件(适合使用方式 3 的需求)

项目依赖

  • nodejs

安装方式

  • 全局安装 npm install -g json-excel-cli
  • 升级最新版 npm install -g json-excel-cli@latest

使用方式(源文件支持相对路径和绝对路径两种输入方式)

1. convert language json file to excel file, Example call:
  json2excel ../zh-cn.json ../en.json helloworld.xlsx
2. convert excel file to language json file, Example call:
  json2excel -r ../helloworld.xlsx
3. incremental merge, generate new language file according to excel file and
   source language file, Example call:
  json2excel -m <../helloworld.xlsx> <../source-zh-cn.json> <../source-en.json> [helloworld]

git 提交规范

git commit 规范

其他文档

发布 node 模块