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

confluence-page-downloader

v1.0.2

Published

confluence-page-downloader は、Confluence API を通じて指定ページのコンテンツを取得し、HTML または Markdown 形式で保存できる TypeScript/Node.js 製のコマンドラインツールです。

Readme

confluence-page-downloader

confluence-page-downloader は、Confluence API を通じて指定ページのコンテンツを取得し、HTML または Markdown 形式で保存できる TypeScript/Node.js 製のコマンドラインツールです。

主な機能

  • Confluence ページを指定してコンテンツを取得
  • HTML/Markdown 形式でファイル出力
  • デフォルトの保存ファイル名にページ ID を使用
  • 環境変数による認証情報設定
  • シンプルなコマンド操作

必須要件

  • Node.js v22 以上
  • npm

インストール

npm install -g confluence-page-downloader

環境変数設定

export CONFLUENCE_BASE_URL="https://xxx.atlassian.net/wiki"
export CONFLUENCE_USERNAME="your-username"
export CONFLUENCE_API_TOKEN="your-api-token"

使い方

cpdown <ConfluenceページのURL> [保存先ファイルパス]

保存先ファイルパスを省略した場合、ページ ID を <ページID>.md または <ページID>.html としてカレントディレクトリに保存します。

拡張子に応じて出力形式を自動判定します。

例:ファイル名省略(ページ ID: 123456)

cpdown https://xxx.atlassian.net/wiki/spaces/ABC/pages/123456
# -> カレントディレクトリに 123456.md または 123456.html が作成されます

例:任意のパス指定

cpdown https://xxx.atlassian.net/wiki/spaces/ABC/pages/123456 ./docs/custom.md

オプション

  • -f, --format <html|md> : 出力形式を明示的に指定 (省略時は拡張子またはデフォルト設定を参照)
  • --help : 使用方法の表示
  • --version : バージョン情報の表示

開発・テスト

git clone https://github.com/your-org/confluence-page-downloader.git
cd confluence-page-downloader
npm install
npm run build
npm test

貢献

バグ報告、機能追加の提案、プルリクエストを歓迎します。Issue を立ててから PR をお送りください。

ライセンス

MIT