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

@codewhy6/utils

v1.1.0

Published

This utils should help get you started developing with sun-utils in Vue 3.

Downloads

36

Readme

一、安装

npm i @codewhy6/utils

二、按需使用

import { typeOf } from "@codewhy6/utils";

三、方法汇总

| 方法名 | 注释 | 备注 | | :------------------: | :------------------------------------: | :--: | | typeOf | 检验数据类型 | | | dateFormat | 格式化时间 | | | toTree | 原始数据转换成树形数组 | | | findTreeNode | 树形数组根据id查找对应的node | | | findTreeNodeParent | 树形数组根据id查找父级 | | | findTreeNodePaths | 树形数组根据id查找出在数组中的存储路径 | | | debounce | 防抖 | | | throttle | 节流 | | | uniqueArray | 数组对象根据字段去重 | | | to2DArray | 将一维数组 转换成 二维数组 | | | getUrlSearchParams | 解析URL参数 | | | serialize | 表单序列化 | | | moneyFormat | 金额格式化 | | | openWindow | 打开chrome小窗口 | | | watermark | 添加全局水印 | | | fuzzyQuery | 数组模糊搜索 | | | deepClone | 对象深拷贝 | | | deepCloneWithReplace | 深拷贝对象,有则更新,无则新增属性 | | | downloadFileBlob | XMLHttpRequest 下载Blob文件 | | | downloadFileBase64 | XMLHttpRequest 下载Base64文件 | | | downloadFile | axios文件下载 | | | formateDicName | 根据字典的value显示label | | | formatFileSize | 根据文件大小(字节)动态转换成常见单位 | | | | | |

推送 npm

1.npm adduser 2.npm publish --access=public