<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thasmto</author_name>
  <author_url>https://blog.hatena.ne.jp/thasmto/</author_url>
  <blog_title>thasmto's blog</blog_title>
  <blog_url>https://thasmto.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Next.js や Slidev などのフロントエンドのOSSで npm init slidev や npx create-next-app のようなテンプレートからプロジェクト作成するためのジェネレータが用意されており、なぜ npm init や npx など複数の方法でジェネレータを利用できるのか気になったので調べました。 パッケージ名にルールがある NPMのドキュメントに npm init がジェネレータを認識するためのルールが記載されており、 どうやら create-&lt;name&gt; のような特定のルールでパッケージ名を指定するとジェネレータとしてNPMが認識してくれるようです。 具体的な…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthasmto.hatenablog.com%2Fentry%2F2022%2F02%2F06%2F001932&quot; title=&quot;npm init や yarn create でジェネレータを利用できる理由 - thasmto&amp;#39;s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-02-06 00:19:32</published>
  <title>npm init や yarn create でジェネレータを利用できる理由</title>
  <type>rich</type>
  <url>https://thasmto.hatenablog.com/entry/2022/02/06/001932</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
