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

@notion-md-converter/cli

v0.12.1

Published

CLI tool for converting Notion pages to Markdown

Downloads

13

Readme

@notion-md-converter/cli

NotionページをMarkdownに変換するCLIツール。

🚀 インストール

npxを使用(推奨)

npx @notion-md-converter/cli convert -p <PAGE_ID_OR_URL> -t <NOTION_TOKEN>

グローバルインストール

npm install -g @notion-md-converter/cli

📖 使い方

APIキーを取得するには、Notionのスタートガイドに従ってください。

基本的な例

NotionページをMarkdownに変換して標準出力に表示:

npx @notion-md-converter/cli convert --page <PAGE_ID_OR_URL> --token <NOTION_TOKEN>

コマンドオプション

  • -p, --page <pageId>: NotionページIDまたはURL(必須)
  • -t, --token <token>: Notion APIトークン(必須)
  • -h, --help: コマンドのヘルプを表示
  • -V, --version: バージョン番号を出力

使用例

ページIDを使用:

npx @notion-md-converter/cli convert -p 12345678901234567890123456789012 -t secret_abc123

ページURLを使用:

npx @notion-md-converter/cli convert -p "https://www.notion.so/My-Page-12345678901234567890123456789012" -t secret_abc123

ファイルに保存:

npx @notion-md-converter/cli convert -p <PAGE_ID> -t <TOKEN> > output.md

環境変数を使用:

export NOTION_TOKEN="secret_abc123"
npx @notion-md-converter/cli convert -p <PAGE_ID> -t $NOTION_TOKEN

Notion APIトークンの取得

  1. Notion Developersにアクセス
  2. 「New integration」をクリック
  3. 名前を付けてワークスペースを選択
  4. 「Internal Integration Token」をコピー
  5. ページをインテグレーションと共有:
    • Notionでページを開く
    • 「共有」→「招待」をクリック
    • インテグレーション名を検索して招待

サポートされているページ形式

CLIはページIDとURLの両方を受け入れます:

  • ページID: 12345678901234567890123456789012
  • ハイフン付きページID: 12345678-9012-3456-7890-123456789012
  • Notion URL: https://www.notion.so/Page-Title-12345678901234567890123456789012

エラーハンドリング

CLIは一般的な問題に対して明確なエラーメッセージを提供します:

  • 無効なページIDまたはURL形式
  • 無効または期限切れのNotion APIトークン
  • ページが見つからない、またはアクセスが拒否された
  • ネットワーク接続の問題

終了コード:

  • 0: 成功
  • 1: エラー発生

ライセンス

MITライセンスの下で配布されています。詳細はLICENSEを参照してください。

作者

malvageee (https://github.com/salvage0707)