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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@yhotamos/enja-cli

v1.4.3

Published

英語を日本語に翻訳するシンプルなコマンドラインツール

Readme

Enja CLI

NPM Version NPM Downloads NPM License

英語を日本語に翻訳するシンプルなコマンドラインツール

特徴

  • セットアップ不要で,インストール後すぐに利用可能
  • Google Apps Script の LanguageApp を使用した軽量な翻訳
  • 引数,標準入力(パイプ),ファイル入力に幅広く対応
  • HTML タグを除去して Web コンテンツもそのまま翻訳
  • OpenAI, Gemini, LM Studio などの各種 API による高品質な翻訳
  • 英日・日英の翻訳方向の切り替えが可能
  • 翻訳履歴の保存やプロファイル機能による複数 API の切り替えが可能

インストール

npm install -g @yhotamos/enja-cli

使い方

基本的な使い方

# 引数で渡された文字列を翻訳
enja "Hello, world!"

# パイプで翻訳
echo "Hello, world!" | enja

# ファイルから読み込み
enja -f input.txt -o output.txt

# 翻訳方向を逆にする (日本語 → 英語)
enja "こんにちは" -F

# OpenAI API を一時的に使用して翻訳
enja "Hello, world!" --provider openai --api-key YOUR_OPENAI_API_KEY

履歴と設定

# 翻訳履歴を表示
enja history

# 設定を表示/追加/アクティブ化
enja config
enja config add work --provider gemini --api-key YOUR_GEMINI_API_KEY --model gemini-2.5-flash
enja config use work

実用例

# エラーメッセージの翻訳
npm install nonexistent-package 2>&1 | enja

# コマンドのヘルプを日本語化
docker --help | enja

# 英語で書かれたドキュメントを日本語に翻訳
enja -f README.md -o README.ja.md

# Webページの本文を翻訳(HTMLタグ除去)
curl -s https://example.com | enja -s

# APIドキュメントなどテキストコンテンツの翻訳
curl -s https://example.com/api/docs | enja

コマンド

COMMANDS.md を参照してください.

セキュリティとプライバシー

デフォルトプロバイダー(GAS)使用時

  • 翻訳データは保存されません(その場で処理され,すぐに結果が返ります)
  • 公開エンドポイントを使用しているため,機密情報の翻訳は避けてください

その他のプロバイダー使用時

OpenAI,Gemini,LM Studio などを使用する場合は,各サービスのプライバシーポリシーに従います. プロバイダーによっては,入力データが保存されたり,学習に利用されることがありますので,注意してください.

貢献

バグ報告や機能リクエストは GitHub Issues へお願いします.

作者

yhotta240