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

laoyepublish

v1.0.4

Published

发布演示

Readme

NPM发包说明:

image-20210316151537618

  1. 进入将发布包的根目录 cd /d d:\Dev\publish\test

  2. npm init 如上图按需求填值,重点注意入口文件配置或者npm init -y(需要单独修改package.json)

    package.json

    {
      "name": "laoye",
      "version": "1.0.0",
      "description": "发布演示",
      "main": "laoye.vue",
      "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1"
      },
      "keywords": [
        "vue",
        "components"
      ],
      "author": "laoye",
      "license": "ISC"
    }
  3. npm login

    image-20210316152510269

    image-20210316152556256

    账户于npm注册(私服也需要注册)

  4. 组件代码发布:

    image-20210316152827725

    npm publish .

    image-20210316153600119

    image-20210316153536128

    image-20210316153701809

  5. 查看版本号:

    image-20210316154655776

    npm view 包名 versions

  6. 版本升级:

    image-20210316155609174

    image-20210316160252322

    image-20210316160218002

    npm version patch:更新一个补丁

    npm version minor:更新一个小改动

    npm version major:更新一个大改动

    npm publish .

  7. 撤销:

    npm unpublish 包名 --force

测试:

基于vuecli创建helloworld项目测试:

  1. 安装包 npm i laoyepublish

    image-20210316160645765

    image-20210316161023405

  2. App.vue引入组件依赖:与常规的组件使用方式一致

    image-20210316160935770

  3. 启动测试:

    image-20210316161132488


异常说明:

E403:包名或版本号等冲突;老包删除需要24小时才能重新以该包名发布;

image-20210316153149077