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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@zhinjs/cli

v0.2.34

Published

zhin 脚手架

Downloads

93

Readme

@zhinjs/cli

cli for Zhin bot,知音机器人的命令行工具

Usage

初始化项目 zhin init

  1. 打开或新建一个项目文件夹
  2. 在项目文件夹下打开命令行(终端)窗口
  3. 执行 zhin init [projectName] (若未填项目名,将在当前文件夹初始化项目)
  4. 根据提示录入信息即可完成 zhin 初始化

启动项目 zhin start

  1. 在项目文件夹下打开命令行(终端)窗口

  2. 执行 zhin start

  3. 等待命令执行完毕即可启动 zhin

    【可选】添加插件 zhin new <pluginName>

    若你有自己开发插件的意图,本指令可为你创建一个模板插件

  4. 在项目文件夹下打开命令行(终端)窗口

  5. 执行 zhin new <pluginName> (请将 <pluginName> 替换为你的插件名)

  6. 默认创建的插件为 JavaScript 语言开发,若你想创建一个 TypeScript 插件开发的模板,可添加 -t 声明其类型为 ts

【可选】发布你的插件 zhin pub <pluginName>

在插件开发完毕后,如果你又意愿将插件公开给其他 zhin 用户使用,可使用该命令将插件发布到npm 供他人下载

注意:ts 编写的插件在发布前需要使用 `zhin build 命令先将插件编译成可在 js 环境运行的插件,否则你的插件将只能在 cli 指令启动的 zhin 下运行

注意:若插件名与 npm 上已有的包名冲突且该包不是你所有,将无法上传

  1. 在项目文件夹下打开命令行(终端)窗口
  2. 执行 zhin pub [pluginName] (请将[pluginName]替换为你的插件名)
  3. 等待命令执行完成即可发布你的插件到 npm

【可选】编译插件 zhin build <pluginName>

将 ts 编写的插件编译成可在 js 环境运行的插件

  1. 在项目文件夹下打开命令行(终端)窗口
  2. 执行 zhin build <pluginName> (请将<pluginName>替换为你的插件名)
  3. 等待命令执行完成即可编译你的插件