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

ryzh-jssdk

v1.0.0

Published

typescript

Readme

项目名

项目简介

特性

如何安装

npm i @supcon/are-utils

如何使用

import { Greeter } from '@supcon/are-utils'

const str = Greeter('Bob')
console.log('str', str)

API

这里列出所有的 API,如果有很多的话,建议这里只写索引,具体的参数信息可以导航到 docs 目录下的文件

executeCustomAction

import { createSubscriber, CONSTANTS } from '@supcon/are-utils'
const subscriberInstance = createSubscriber({
  id: '',
  groupName: 'are-log-web',
})
subscriberInstance.executeCustomAction({
  name: CONSTANTS.customAction.openPage,
  payload: {
    page: CONSTANTS.tabPages.log,
    params: {
      sourceTag: 'var://65cb9bd3-b3cf-4d07-9d66-f0e45b10d090/tag1',
    },
  },
})

如何开发

yarn
yarn start

本项目采用prettier来统一代码风格,并且会在pre-commit前自动 format 你本次提交的代码,推荐你在你的编辑器里安装 prettier 插件,并且开启保存文件就自动 format 选项,这样可以在开发的时候,就能自动 format

本项目采用git flow 工作流,请按照 git flow 工作流来提交合并代码

如何提交代码并打包发布

推荐使用npm run commit来代替git commit作为格式化 commit 信息的工具

# 自动打tag和生成changelog,并修改package.json
git add .
yarn commit
yarn release
npm publish
git push origin HEAD

注意:yarn commit 必须写以下两项(scope name 不能为大写开头):

? What is the scope of this change (e.g. component or file name)? (press enter to skip)
 docs
? Write a short, imperative tense description of the change:
 修改readme描述

如何删除本地 tag

每次 yarn release 脚本运行成功时,会自动修改 package.json 的 version,并在本地生成 tag,如果提示fatal: tag 'v1.0.1' already exists或者打错 tag,则需要删除 tag 记录:

# 错误信息
fatal: tag 'v1.0.1' already exists

Command failed: git tag -a v1.0.1 -m "chore(release): 1.0.1"
fatal: tag 'v1.0.1' already exists
git tag -d v1.0.1
Deleted tag 'v1.0.1' (was 7d5c8a7)

如何提交尚未推送到远程的本地标签

git push origin --tags
Enumerating objects: 1, done.
Counting objects: 100% (1/1), done.
Writing objects: 100% (1/1), 168 bytes | 168.00 KiB/s, done.
Total 1 (delta 0), reused 0 (delta 0)
To git.xian.supcon.com:mare/vxsip/are-utils-web.git
 * [new tag]         v1.1.0 -> v1.1.0

如何删除远程分支

git push origin :refs/tags/v1.1.0