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

cnblogs-cli

v1.0.5

Published

### 安装

Downloads

4

Readme

博客园自动发布工具

安装

npm i cnblogs-cli -g

使用说明

使用前请填写账号密码 cn reset,若账号密码填错,再次reset

1. 拉取博客园文章

  • 1.1 执行cn init [num],会在当前目录拉取博客园最近 100篇随笔,num为自定义拉取的条数
  • 拉取成功后会询问是否使用 git 管理本地随笔,如选择,则在本地初始化为 git 仓库
  • git 初始化后 本地文件变更会在执行 cn push [commit message] 后推送到博客园,可执行的文件变更有新增、删除、内容变化
  • 同时会在本地仓库产生一个 commit

2. 管理随笔

  • 2.1 推送随笔

    cn publish <fileName> or cn p <fileName>,推送成功后会在 markdown 顶部添加yaml格式的postid字段记录博客的postid,你也可以在markdown顶部yaml中添加title字段用作随笔的title

  • 2.3 删除随笔 cn delete <fileName> or cn d <fileName>

3.批量管理(需要用 git 初始化)

  • 批量推送 在本地文件有变动后,执行cn push,会将有变动的文件推送到博客园。

4.其他

  • cn categories or cn cate 查看博客园随笔分类列表
  • cn userinfo or cn info 查看本地配置信息
  • cn reset or cn r 重新配置
  • cn clear or cn c 清除本地配置信息