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

@zhangyp/node-utils

v1.0.1

Published

node 常用工具库

Downloads

1

Readme

Node utils

node 常用工具库

Installation

Using yarn:

$ yarn add @zhangyp/node-utils

API

getPathFiles

获取指定路径下的所有文件,包含子文件

getPathFiles(path, [excludeFolders])

引入版本 1.0.1

| 参数 | 类型 | 是否必选 | 默认值 | 说明 | | ---- | ------ | -------- | ------ | ------ | | path | string | 是 | 无 | 指定路径 | | excludeFolders | array | 否 | 无 | 排除的文件夹 |

返回值 (Array): 返回指定路径下的所有文件。

其他

Tag

git tag v1.0.0    # 打tag

git push origin --tags    # 推送tag到远程仓库

git tag -d v1.0.0  # 删除本地tag

git push origin :refs/tags/v1.0.0   # 删除远程tag

手动发包

  1. 切换当前的源为 https://registry.npmjs.org/

    yrm use npm

  2. 登录

    npm login

  3. 发布 当报名为@your-name/your-package时,由于以@your-name开头,npm publish会默认发布为私有包,但是 npm 的私有包需要付费,所以需要发布为公共包。

    npm publish --access=public