slack-emoji-cli

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 8 Imported by: 0

README

slack-emoji-cli

テキストからSlack絵文字用の画像(128×128px PNG)を生成するCLIツール。

サンプル: https://ayato-p.github.io/slack-emoji-cli/

インストール

go install github.com/ayato-p/slack-emoji-cli@latest

またはソースからビルド:

git clone https://github.com/ayato-p/slack-emoji-cli.git
cd slack-emoji-cli
go build -o emo .

使い方

emo [options] TEXT

\ でテキストを区切ると複数行になります。

# 2行テキスト → emoji.png に保存
emo '猫に\小判'

# 出力先を指定
emo -o /tmp/my-emoji.png '猫に\小判'

# 背景色を変える
emo --bg '#E63946' 'お気持ち'

# 1行
emo '猫'

シェルでの注意: \ を正しく渡すにはシングルクォート推奨。ダブルクォートの場合は \\ とエスケープしてください。

オプション

フラグ デフォルト 説明
-o emoji.png 出力ファイルパス
--bg #1D3557 背景色(#RGB / #RRGGBB / #RRGGBBAA

出力仕様

  • フォーマット: PNG
  • サイズ: 128×128px(Slack推奨サイズ)
  • フォント: Noto Sans JP(バイナリに埋め込み済み、実行環境へのフォントインストール不要)
  • フォントサイズ: テキストが収まるよう自動調整

ライセンス

MIT License — 詳細は LICENSE を参照。

サードパーティコンポーネントのライセンスは NOTICE および LICENSES/ を参照。

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL