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

zenn-template-cli

v1.0.5

Published

A CLI tool to inject predefined templates into your Zenn articles

Readme

zenn-template-cli

毎回同じ構成を手作業で書くのはもうやめよう!!

Zennの記事にテンプレートを差し込んで、執筆をスピードアップできるCLIツールです。

目的

  • 新規作成した Zenn 記事に、テンプレートを簡単に差し込める
  • 構成の統一や執筆準備の手間を削減
  • 記事の中身に集中できる環境を提供

「毎回構成を考えるのが大変」「フォーマットを統一したい」といった悩みを、コマンド一発で解決します。

インストール方法

npm install zenn-template-cli

使い方

Zenn 記事へのテンプレート適用は、次の3ステップで完了します。

  1. テンプレートの準備
  2. コマンドの実行
  3. オプションで柔軟に制御(任意)

テンプレートの準備

テンプレートは templates ディレクトリ内に .md ファイルとして保存してください。 テンプレートファイル名は --template オプションで指定する名前と一致させるか、コマンド実行時に選択できます。

例:

your-project/
├── articles/
│   └── sample-article.md
├── templates/
│   └── basic.md

コマンド実行

zenn-template

このコマンドを実行すると、以下の流れでテンプレートを適用できます:

  • templates/ フォルダ内のテンプレート一覧が表示されます。

  • 使用するテンプレートを選択します。

  • articles/ フォルダ内の .md ファイルが 更新日時の新しい順 に表示されます。

  • 適用対象の記事を選択します。

  • テンプレートが差し込まれ、完了メッセージが表示されます ✅

✅ テンプレート basic を sample-article.md に適用しました!

オプションを使った実行例

特定のテンプレートを直接指定したい場合:

zenn-template --template=basic

記事内容をテンプレートで完全に上書きしたい場合:

zenn-template --template=basic --overwrite

💡 --template を指定した場合はテンプレート選択がスキップされます。

💥 --overwrite を付けると既存の内容が上書きされるため、注意して使ってください。


オプション一覧

| オプション | 説明 | | ------------- | ---------------------------- | | --template | 使用するテンプレート名を指定 | | --overwrite | 既存内容を上書きするモード |


動作環境

  • Node.js 18以上

作者情報

Created by Yuji Nakamura

GitHub: @Yuji5117


ライセンス

このプロジェクトは MITライセンス のもとで公開されています。
自由にご利用・改変・再配布していただけますが、著作権表示とライセンス文の同梱が必要です。