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

atl-fetch

v1.2.0

Published

Atlassianの情報をfetchする

Downloads

354

Readme

atl-fetch

CI npm version License: MIT Quality Gate Status CodeRabbit Pull Request Reviews DeepWiki

Atlassian Cloud(Jira / Confluence)から情報を取得する Node.js CLI ツール兼ライブラリです。

主な機能

  • Jira Issue 取得: タイトル、説明、コメント、変更履歴、添付ファイル
  • Confluence ページ取得: タイトル、本文、バージョン履歴、添付ファイル
  • 複数出力形式: JSON / Markdown / YAML
  • 差分表示: バージョン間の Unified diff 形式表示
  • 添付ファイルダウンロード: 指定ディレクトリへの保存
  • 親切なエラーメッセージ: エラーコード、原因、解決策を表示
  • 進捗表示: スピナーによる処理状況の可視化
  • 認証チェック: atl-fetch auth check で設定状態を確認

動作要件

  • Node.js 22.0.0 以上
  • pnpm(推奨)または npm

インストール

# npm
npm install -g atl-fetch

# pnpm
pnpm add -g atl-fetch

クイックスタート

1. 環境変数の設定

export ATLASSIAN_EMAIL="[email protected]"
export ATLASSIAN_API_TOKEN="your-api-token"

API トークンは Atlassian Account Settings から取得できます。

2. 基本的な使用方法

# Jira Issue を取得
atl-fetch https://your-domain.atlassian.net/browse/PROJECT-123

# Confluence ページを取得
atl-fetch https://your-domain.atlassian.net/wiki/spaces/SPACE/pages/123456/Page+Title

# Markdown 形式で出力
atl-fetch https://your-domain.atlassian.net/browse/PROJECT-123 --format markdown

# 添付ファイルをダウンロード
atl-fetch https://your-domain.atlassian.net/browse/PROJECT-123 --download --dir ./output

# ファイルに保存(リダイレクト)
atl-fetch https://your-domain.atlassian.net/browse/PROJECT-123 > result.json

CLI オプション

| オプション | 短縮形 | 説明 | デフォルト | | ------------ | ---- | ---------------------------- | ----- | | --format | -f | 出力形式(json / markdown / yaml) | json | | --download | -d | 添付ファイルをダウンロード | false | | --dir | -o | 保存先ディレクトリ | - | | --diff | | 差分のみを出力 | false | | --color | | カラー出力を有効化 | true | | --verbose | -v | 詳細出力を有効化 | false | | --debug | | デバッグ出力を有効化(開発者向け) | false | | --help | -h | ヘルプを表示 | - | | --version | -V | バージョンを表示 | - |

注意: --dir--download と一緒に使用する必要があります。

サブコマンド

atl-fetch auth check

認証情報の設定状態を確認します。

atl-fetch auth check

出力例(設定済み):

認証情報チェック
────────────────────────────────────────

✓ 認証情報が正しく設定されています

  設定状態:
    ATLASSIAN_EMAIL:     [email protected]
    ATLASSIAN_API_TOKEN: ***abcd

エラーコード

問題が発生した場合、以下のエラーコードと解決策が表示されます。

| コード | 説明 | 主な原因 | | ------------ | ------------------ | ----------------------- | | ATL-URL-001 | URL の形式が不正 | サポートされていない URL 形式 | | ATL-AUTH-001 | 認証失敗 | API トークンが無効または期限切れ | | ATL-404-001 | リソースが見つからない | URL が間違っている、または削除済み | | ATL-403-001 | アクセス権限なし | 該当リソースへの権限がない | | ATL-NET-001 | ネットワークエラー | インターネット接続の問題 |

ライセンス

MIT

貢献

CONTRIBUTING.md をご覧ください。