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

git-issues-blog

v1.0.1

Published

### shero-cli是什么? 很多程序员平时喜欢使用git的issue来编写博客,因为issue里的comment部分能够提供一个作者和读者之间沟通讨论的平台。但是使用issue编写博客的话,涉及到博客内容和issue直接的关系需要维护,作者需要自己维护一个博客仓库,然后在博客完成后再复制到issue。 为了让利用github的issue来开发博客变得更加愉快,就开发了shero-cli这款工具。主要提供的功能有: - 命令行式创建博客 - 命令行式发布博客 - 将仓库里的md文件生成目录列表,降低

Downloads

1

Readme

shero-cli 使用说明

shero-cli是什么?

很多程序员平时喜欢使用git的issue来编写博客,因为issue里的comment部分能够提供一个作者和读者之间沟通讨论的平台。但是使用issue编写博客的话,涉及到博客内容和issue直接的关系需要维护,作者需要自己维护一个博客仓库,然后在博客完成后再复制到issue。 为了让利用github的issue来开发博客变得更加愉快,就开发了shero-cli这款工具。主要提供的功能有:

  • 命令行式创建博客
  • 命令行式发布博客
  • 将仓库里的md文件生成目录列表,降低维护成本

项目设计图

项目设计图

怎么用

1. shero-cli安装

npm install shero-cli -g

2. shero-cli初始化

shero-cli init

需要根据提示输入用户名,仓库名和token。 token的获取请参考这篇文章关于获取git的token。先在页面中生成对应的token,在拷贝到命令行中。

3. 创建一篇博客

shero-cli create <blogName>
  • 注意blogName就是博客名称,也会作为issue的标题展示
  • blogName是必填项,.md后缀可不填,默认生成md文件

4. 发布或更新一篇博客

shero-cli publish [blogName]

shero-cli自动识别publish的博客是否存在,存在的话就是更新博客,不存在就新建博客。

TODO list

这个工具我是先开发一个版本,有的功能还要继续的新增和完善。也欢迎rd朋友提出自己的想法和建议,甚至参与到这个工具的开发中。

  • [ ] shero-cli close [blogName] (issue 的关闭)
  • [ ] shero-cli delete [blogName] (博客的删除)
  • [ ] 支持博客头部和尾部使用模板
  • [ ] 支持博客分类

参考文章

nodejs api 官网

关于获取git的token

封装好了的github api => octokit