
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
极简主义的 AI 终端翻译工具。
支持本地大模型 (Ollama, LM Studio) 与主流在线 API。
中文 | English
ollama list)。t <text> 即可快速翻译,或进入交互模式连续使用。npm install -g xtrans
或者使用 npx 直接运行:
npx xtrans <text>
全局安装后,可直接使用 t 或 xtrans 进行即时翻译;使用 npx 时请用 xtrans。
t hello
# ┌───────────────────────────────────────────────────┐
# │ hello /həˈləʊ/ int. n. │
# │ │
# │ int. │
# │ • 你好 (用于问候、接电话或引起注意) │
# │ - Hello, Paul. I haven't seen you for ages. │
# │ │
# │ n. │
# │ • (Hello) 人名;(法)埃洛 │
# │ │
# │ Synonyms: hi, greetings │
# └───────────────────────────────────────────────────┘
不带参数运行即可进入交互式 shell(全局安装可用 t 或 xtrans;npx 请用 xtrans)。支持上下键 (↑/↓) 切换历史记录。
t
# Welcome to xtrans v1.2.0
# Provider: ollama | Model: llama3 | Target: zh
# ›
在 REPL 内使用 /mode 切换,例如:t /mode cambridge。
translation: 通用翻译cambridge: 剑桥词典风格(学习者友好)oxford: 牛津词典风格(学术/历史)grammar: 语法检查你可以在交互模式内 (输入 /) 或直接从终端运行这些命令。
| 命令 | 说明 | 示例 |
|---|---|---|
/use | 切换服务商或模型 (交互式) | t /use |
/mode | 切换模式 (translation/cambridge/oxford/grammar) | t /mode oxford |
/target | 设置目标语言 | t /target ja |
/status | 检查服务状态及当前模型 | t /status |
/add | 添加自定义 OpenAI 兼容服务商 | t /add |
/remove | 移除服务商 | t /remove |
/clean | 清理历史记录/缓存 | t /clean |
xtrans 为主流服务预设了配置模板:
http://localhost:11434。支持自动检测已安装模型。http://localhost:1234/v1。首次运行时,xtrans 会引导你设置首选服务商。你可以随时使用 t /use 进行切换。
如需添加自定义服务商(例如本地服务器或其他 API):
t /add
MIT
FAQs
Minimalist AI-powered terminal translator / 极简 AI 终端翻译工具
The npm package xtrans receives a total of 2 weekly downloads. As such, xtrans popularity was classified as not popular.
We found that xtrans demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.