naopoyo.com
  • Docs
  • Tags
  • Bookmarks
  • Tools
  • About
  • Docs
  • Tags
  • Bookmarks
  • Tools
  • About

目次

© naopoyo

目次

最近更新された記事

🎯

カバレッジ確認スクリプトで Claude Code への指示が快適になった話

約3時間前·2026年02月04日
  • Claude Code
  • Rails
  • Ruby
🛤️

Rails 8.0 から 8.1 へのアップグレード手順

約10時間前·2026年02月04日
  • Rails
  • Ruby
🏗️

Rails サービスレイヤー設計の実践ガイド

約12時間前·2026年02月04日
  • Rails
  • Ruby
🛟

CLIツールを作ろう

公開日3か月前2025-10-25
履歴GitHubで見る
MarkdownRaw Content
  • Node.js
  • npm

概要

Hono CLI の docs コマンドが面白かったので似たようなことをしたいと思った。

Hacker SheetのCLIツールを作るために調べたことを記録していく。

Commander.js

GitHub - tj/commander.js: node.js command-line interfaces made easy
node.js command-line interfaces made easy. Contribute to tj/commander.js development by creating an account on GitHub.
github.com favicon
github.com
GitHub - tj/commander.js: node.js command-line interfaces made easy

Node.jsでCLIアプリケーションを作成するための人気のあるライブラリ。コマンドライン引数を解析し、オプションやサブコマンドを定義できる。

find-up

GitHub - sindresorhus/find-up: Find a file or directory by walking up parent directories
Find a file or directory by walking up parent directories - sindresorhus/find-up
github.com favicon
github.com
GitHub - sindresorhus/find-up: Find a file or directory by walking up parent directories

ファイルやディレクトリを親ディレクトリへ向かって上方向に探索し、最初に見つかったパスを返す小さなユーティリティ。

Inquirer.js

GitHub - SBoudrias/Inquirer.js: A collection of common interactive command line user interfaces.
A collection of common interactive command line user interfaces. - SBoudrias/Inquirer.js
github.com favicon
github.com
GitHub - SBoudrias/Inquirer.js: A collection of common interactive command line user interfaces.

対話式のプロンプトを簡単に作成できるライブラリ。

cosmiconfig

GitHub - cosmiconfig/cosmiconfig: Find and load configuration from a package.json property, rc file, TypeScript module, and more!
Find and load configuration from a package.json property, rc file, TypeScript module, and more! - cosmiconfig/cosmiconfig
github.com favicon
github.com

プロジェクト内の設定ファイルを柔軟に探索して読み込むためのライブラリ。

ブックマーク

commander.jsを利用したCLIコマンドの作成
zenn.dev favicon
zenn.dev
commander.jsを利用したCLIコマンドの作成
Node.js製ライブラリのconfigはcosmiconfigで実装するのがよさそう - @kimulaco/blog
Webエンジニアの学びと趣味のブログ。Node.js製ライブラリのconfigはcosmiconfigで実装するのがよさそうだったので、簡単な使い方や便利ポイントを紹介します。
kimulaco.dev favicon
kimulaco.dev
Node.js製ライブラリのconfigはcosmiconfigで実装するのがよさそう - @kimulaco/blog
GitHub - honojs/cli: CLI for Humans and AI with Hono
CLI for Humans and AI with Hono. Contribute to honojs/cli development by creating an account on GitHub.
github.com favicon
github.com
GitHub - honojs/cli: CLI for Humans and AI with Hono