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

ch-e2c

v1.0.6

Published

中英文互译的命令行工具

Readme

e2c 中英文互译命令行工具

npm version License: ISC

一个简单易用的中英文互译命令行工具,支持快速查询单词和短语的翻译。

特性

  • 🚀 快速翻译:支持中文到英文、英文到中文的双向翻译
  • 📱 智能识别:自动识别输入语言类型
  • 🎨 美观输出:使用彩色文字和加载动画提升用户体验
  • 💻 全局安装:安装后可在任意目录使用

安装

使用 npm 全局安装:

npm install ch-e2c -g

使用方法

基本用法

# 直接输入要翻译的内容(自动识别语言)
e2c hello
e2c 你好

# 使用参数指定翻译方向
e2c -e "hello world"     # 英文翻译为中文
e2c -c "你好世界"        # 中文翻译为英文

命令选项

| 选项 | 描述 | 示例 | |------|------|------| | -e, --english <text> | 翻译英文到中文 | e2c -e "apple" | | -c, --chinese <text> | 翻译中文到英文 | e2c -c "苹果" | | -h, --help | 显示帮助信息 | e2c -h | | -V, --version | 显示版本信息 | e2c -V |

使用示例

# 翻译英文单词
$ e2c apple
中文翻译:苹果

# 翻译中文词汇
$ e2c 苹果
英文翻译:
apple
Apple Inc.

# 使用参数形式
$ e2c -e "computer"
中文翻译:计算机;电脑

$ e2c -c "计算机"
英文翻译:
computer
calculator

技术栈

开发

# 克隆项目
git clone https://github.com/chenzedong5/e2z.git
cd e2z

# 安装依赖
npm install

# 本地测试
node index.js hello

许可证

ISC

作者

chenzedong - [email protected]

贡献

欢迎提交 Issue 和 Pull Request!


如果这个工具对你有帮助,请给个 ⭐️ 支持一下!