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 🙏

© 2026 – Pkg Stats / Ryan Hefner

gl-issue

v0.0.4

Published

#### 用途

Readme

gitlab-issue小工具

用途

有的人喜欢在gitlab的issue上搭建自己的博客,该工具用于将自己issue上的博客都下载到本地。

安装

npm i -g gl-issue

使用

首先要初始化配置基础信息

gl-issue init  // (重要)进行一些初始化配置,填写你的项目地址,private token等信息

可以调用 gl-issue config --help 查看需要配置的内容对应的详情, gl-issue config 查看已经配置好的信息,检查是否有误。

gl-issue config --help
// 以下是输入的内容
各个配置及其说明:↓↓↓↓↓↓↓↓
GITLAB_WEB        你们公司部署的gitlab线上域名
PROJECT_API       请求project的api, 默认是/api/v3/projects, 可以查看gitlab文档修改
PROJECT_ID        issue项目的id
PRIVATE_TOKEN     个人gitlab的private token或者access token
USEIDINFILENAME   是否开启文件名后面添加issue的id,主要为了防止重名,默认关闭
GITLAB_IMAGE_URL  issue中图片上传的地址域名, 默认是gitlab域名
  • issue项目的id就是你博客项目的id,如果不知道则直接输入项目的全称,会自动查找。
  • USEIDINFILENAME 主要是防止多个issue的title相同,导致写入到本地的时候出错。最好能自己保证title不重复。

修改单个配置的命令:

gl-issue set PROJECT_ID 123

下载全部的issue文章:

gl-issue dl [filename]

filename为文章下载后存放的文件名,默认为 issueArticle

下载单个issue文章

gl-issue dl -s [issueId]

issueId为issue创建时候的id,这个可以打开自己要下载的线上的issue,链接后面的数据就是issue的id,比如下面的这个url:

gitlab.admin.com.cn/document/issues/3

3 就是issueId。

待完成

  • [ ] 本地issue的上传
  • [ ] 默认添加头部信息的可配置化