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/types

v0.0.3

Published

pegzkit TypeScript 类型工具包(纯类型层,无运行时产物)

Downloads

108

Readme

@pegzkit/typess

中文 | English


中文

@pegzkit/typesspegzkit 的 TypeScript 类型工具子包。纯类型层,无任何运行时产物,零依赖。

安装

pnpm add -D @pegzkit/types

使用方式

import type { Arrayable, DeepKeyof, Range } from "@pegzkit/types";

类型列表

| 类型 | 说明 | | --------------------- | ------------------------------------ | | Arrayable<T> | TT[] | | DeepKeyof<T> | 深层键路径(点分隔字符串) | | PropertyKey | 增强版 PropertyKey(含模板字面量) | | Range<Min, Max> | 整数范围联合类型 | | Literal<T> | 保留字面量类型 | | SetPath<T, Path, V> | 深层路径赋值后的类型 | | IsAny<T> | 判断是否为 any | | IsPromise<T> | 判断是否为 Promise | | Assert<T, U> | 断言类型相等 | | IsProp<T, K> | 判断键是否存在于对象 |


English

@pegzkit/typess is the TypeScript type utility sub-package of pegzkit. Type-only, no runtime output, zero dependencies.

Installation

pnpm add -D @pegzkit/typess

Usage

import type { Arrayable, DeepKeyof, Range } from "@pegzkit/typess";

Type List

| Type | Description | | --------------------- | --------------------------------------------------- | | Arrayable<T> | T or T[] | | DeepKeyof<T> | Deep key path (dot-separated string) | | PropertyKey | Enhanced PropertyKey (includes template literals) | | Range<Min, Max> | Integer range union type | | Literal<T> | Preserve literal type | | SetPath<T, Path, V> | Type after deep path assignment | | IsAny<T> | Check if type is any | | IsPromise<T> | Check if type is Promise | | Assert<T, U> | Assert types are equal | | IsProp<T, K> | Check if key exists on object |