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

@splt/common

v1.0.1

Published

1. 登录 > npm login 2. 配置package.json - name:作用域包的名称格式为 @scope/package-name,这里是 @splt/common。 - version:包的版本号,遵循 SemVer 规范,初始版本可以设置为 1.0.0。 - description:包的简要描述。 - main:包的入口文件。 每次发布包时,package.json 中的 version 字段必须是一个新的版本号,否则会发布失败。

Readme

发布NPM

  1. 登录

npm login

  1. 配置package.json
  • name:作用域包的名称格式为 @scope/package-name,这里是 @splt/common。
  • version:包的版本号,遵循 SemVer 规范,初始版本可以设置为 1.0.0。
  • description:包的简要描述。
  • main:包的入口文件。 每次发布包时,package.json 中的 version 字段必须是一个新的版本号,否则会发布失败。
  1. 配置作用域 如果你要发布的是作用域包(以 @ 开头),需要确保在 package.json 中配置了正确的作用域,并且在 npm 中设置了该作用域的发布权限.

在项目根目录下创建或编辑 .npmrc 文件,添加以下内容:

@splt:registry=https://registry.npmjs.org/ 这会告诉 npm 该作用域的包要发布到官方的 npm 注册表。

  1. 建议先验证包的结构和依赖是否正确。可以运行以下命令进行验证:

npm pack 这会在项目根目录下生成一个 .tgz 文件

  1. 发布包:

npm publish --access public