From ca69c44bc04650242610db232bd4c1f912fe4aa4 Mon Sep 17 00:00:00 2001 From: uiolee <22849383+uiolee@users.noreply.github.com> Date: Tue, 2 Jan 2024 23:48:30 +0800 Subject: [PATCH] docs: add badges --- README.md | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d3aabb8..37c5e77 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,33 @@ # create-hexo +![npm](https://img.shields.io/npm/v/create-hexo?link=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Fcreate-hexo) +![node-current](https://img.shields.io/node/v/create-hexo) +![npm-download](https://img.shields.io/npm/dm/create-hexo) +[![CI](https://github.com/uiolee/create-hexo/actions/workflows/ci.yml/badge.svg?branch=main&event=push)](https://github.com/uiolee/create-hexo/actions/workflows/ci.yml) + > Hexo site initializer ## Usage +### pnpm + ```bash -npm init hexo [path] +pnpm create hexo [path] -# npm exec create-hexo [path] -# npx create-hexo [path] +# pnpm dlx create-hexo [path] ``` +### npm + ```bash -pnpm create hexo [path] +npm init hexo [path] -# pnpm dlx create-hexo [path] +# npm exec create-hexo [path] +# npx create-hexo [path] ``` +### Yarn + ```bash yarn create hexo [path] ```