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

@pegzkit/utils

v0.0.4

Published

pegzkit 运行时工具函数包(零依赖,仅 ESM,完整 Tree-shaking)

Downloads

222

Readme

@pegzkit/utils

中文 | English


中文

@pegzkit/utilspegzkit 的运行时工具函数子包。零依赖,仅 ESM,支持完整 Tree-shaking。

安装

pnpm add @pegzkit/utils

使用方式

import { debounce, group, clamp } from "@pegzkit/utils";

函数分类

  • array — 排序、分组、筛选、转换、集合运算等 34 个函数
  • async — 并发控制、重试、延迟 Promise 等 5 个函数
  • function — 防抖、节流、缓存、组合、柯里化等 10 个函数
  • number — 范围限制、四舍五入、安全除法等 7 个函数
  • object — 深度操作、键值映射、类型安全合并等 23 个函数
  • random — 随机数、随机字符串、随机采样 3 个函数
  • string — 大小写转换、填充、截断、模板替换等 16 个函数
  • typed — 完整的 is* 类型守卫函数集合及 narrow 断言

English

@pegzkit/utils is the runtime utility sub-package of pegzkit. Zero dependencies, ESM-only, fully tree-shakeable.

Installation

pnpm add @pegzkit/utils

Usage

import { debounce, group, clamp } from "@pegzkit/utils";

Categories

  • array — Sorting, grouping, filtering, set operations and more (34 functions)
  • async — Concurrency control, retry, deferred Promise (5 functions)
  • function — Debounce, throttle, memoize, compose, currying and more (10 functions)
  • number — Clamping, rounding, safe division and more (7 functions)
  • object — Deep operations, key/value mapping, type-safe merge and more (23 functions)
  • random — Random number, random string, random sampling (3 functions)
  • string — Case conversion, padding, truncation, template substitution and more (16 functions)
  • typed — Complete is* type guard collection and narrow assertion