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

streakingman-cli

v1.13.0

Published

封装了一些常用操作的命令行工具

Readme

StreakingMan Cli

封装了一些常用操作的命令行工具

安装

# npm
npm install streakingman-cli -g

# yarn
yarn global add streakingman-cli

功能

使用

check-git

查看当前仓库 git 配置名称和邮箱,看似鸡肋,一个命令查看俩, 节省键盘耐久度

skm check-git

set-git

配置当前仓库 git 配置用户名和邮箱,看似鸡肋却有这实际使用场景: 在公司的电脑一般 git 全局配置都设置公司的 git 名称和邮箱, 使用这个命令可以在上班摸鱼写自己的项目时 更快捷的配置新项目的个人 git 名称和邮箱,

skm set-git

然后根据提示输入名称和邮箱即可

? user.name dogEgg
? user.email [email protected]
设置完成,当前配置:
git config user.name dogEgg
git config user.email [email protected]

或者携带参数

skm set-git dogEgg [email protected]

设置完成,当前配置:
git config user.name dogEgg
git config user.email [email protected]

set-project

快捷安装 eslint,prettier,lintstaged,commitlint,husky 等依赖并进行基础配置

skm set-project

根据需要进行选择

? 是否react项目 Yes
? 是否使用了typescript Yes
? 是否使用eslint+prettier Yes
? 是否使用commitlint+lintstaged+husky Yes
? 是否使用standard-version管理版本号 Yes

react-comp

快速生成 react 组件相关文件 包含组件、样式以及类型声明

skm set-project

? 请输入组件名 (MyComp)

或者

skm set-project MyComp

命令将生成相应的组件文件夹,文件夹内包含文件如下

index.tsc


import React, { FC } from 'react'
import classNames from 'classnames'
import style from './index.module.scss'
import { MyCompProps } from './interface'

const MyComp: FC< MyCompProps > = () => {
    return <div className={classnames(style.myComp)}}"></div>
}

export default MyComp

index.module.scss

.myComp {
    //
}

interface.ts

export interface MyCompProps {
    className?: string
}

jekyll-md

skm jekyll-md
? 请输入标签 标题
? 请输入分类 分类
? 请输入标签(用英文逗号分隔标签)标签1,标签2,标签3

或者

skm jekyll-md 标题 分类 标签1,标签2,标签3

生成如下 md 文件

2022-05-15-标题.md

---
layout: post
title: 标题
author: Max
categories: 分类
tags: 标签1 标签2 标签3
---


generated at <%- generatedAt %> by streakingman-cli@<%- version %>

type-it

对文本文件重新进行逐字输入,用于一些需要装逼的场景(webstorm由于文件读取机制问题,暂不支持)


```shell
Usage: skm type-it [options] [filePath] [speed] [breakBySpace]

taobao-registry

生成淘宝源 npmrc 文件

skm taobao-registry

.npmrc生成完毕

show-hosts

由于某些原因,一些网站经常不好使(dns 直接被运营商屏蔽),通过这个命令查看一些常用站点的 hosts 配置

skm show-hosts

# 将以下内容添加到hosts文件中,通常情况下macOS系统路径为:/etc/hosts,windows系统路径为:C:\Windows\System32\drivers\etc\hosts

# 国内常用hosts,失效时可自行检查最新IP https://dnschecker.org/
104.16.20.35 registry.npmjs.org
104.16.20.35 registry.yarnpkg.com
140.82.121.5 api.github.com
140.82.121.3 github.com

TODO

  • [ ] 测试用例
  • [x] 使用 ts 重写
  • [ ] 支持配置文件