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

lxlnpmtest

v1.0.0

Published

一、初始化项目 1.npm init -y

Downloads

9

Readme

一、初始化项目 1.npm init -y

其他命令:
    npm install jquery -S 生产环境
    npm install babel -D  开发环境
    npm install  依赖全部安装
    npm install --production  只安装生成环境的依赖
    npm uninstall babel  卸载全部
    npm uninstall -D/-S  卸载开发/生产
    npm list 查看安装依赖包列表
    npm update jquery  升级到最新jquery
    npm update   全部升级到最新
    npm install -g npm 升级npm到最新

2.包的版本管理
    1.2.3
    主版本号 -> 大版本迭代
    次版本号 -> node服务协作功能修改 vue视图改变
    修改版本号 -> bug修改,增改功能,追加此版本号

    四大型版本
        aplha -> 允许存在bug、异议 允许整个思想都改变,最不稳定
        beta -> 底层东西已经定型,大框架不会改变,上线前内测 外测
        rc -> 成熟版本,可以商用
        release -> 1.0最终版,1.0不会再动,可能还有2.0

    模块管理
        npm info jquery  和jq相关的东西,可查看历史版本
        npm install [email protected]  安装指定版本

        npm outdated jquery 查看可升级的最新版本
            ^1.2.3 只允许在次版本升级
            ~1.2.3 只允许在修改版本升级

3. npm源管理
    npm install nrm -g  找到npm使用的源

    cnpm -> cnpmjs.org 开源项目
    taonpm -> npm.taobao.org  局域网 缓存npm数据

    nrm ls   查看所有用到的源
    nrm use npm 切换到npm源
    nrm use taobao 切换到淘宝源
    npm test 测试每个相关节点的延迟速度
    npm add localhost http://192.168.1.12:7001/  手动新增源

4. npm发布
    nrm use npm  发布时必须指回官方源

    注册邮箱 mail.google.com

    wostemp
    [email protected]
    wostemp
    woskehouba


    npm 私有化  7美元/月


    npm login
    npm publish