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

lxy-cli-npm-install

v1.1.14

Published

检查某个文件是否被修改,默认检查package.json文件

Readme

一个 CICD,项目构建时避免重复 npm i 的过程

使用说明

  • 安装: npm i lxy-cli-npm-install
  • 使用 1: lxy-cli-npm-install - 默认检查 package.json 文件是否被修改(主要用途)
  • 使用 2: lxy-cli-npm-install xxx.txt 检查 xxx.txt 文件是否被修改
  • 使用场景: CICD 过程,可先在欲发布的服务器上全局安装该插件,在代码提交时触发流水线项目构建时,执行 lxy-cli-npm-install 命令替换到原有的 npm install 命令,可实现避免重复安装依赖导致构建发布缓慢问题
  • 作用: 自动化构建时避免重复安装依赖导致构建发布缓慢问题
  • 兼容: linuxwindowsMac

V1.1.11 版本

  1. 优化:
    • 功能优化: 支持监控多项目依赖变化,项目避免使用同一 name(即 package.json 配置中: 保持不同项目的 name 属性值唯一)
    • 指令优化: 将 lxy-cli-npm-install check 设置为默认指令(即:执行 lxy-cli-npm-install 等同于 lxy-cli-npm-install check

V1.1.12 版本

  1. 新增功能: 新增指令clear
    • 使用 1: lxy-cli-npm-install clear 默认清理与当前项目相关缓存
    • 使用 2: lxy-cli-npm-install clear xxxx 清理与项目 xxxx 相关的缓存
    • 使用 3: lxy-cli-npm-install clear -alxy-cli-npm-install clear --all 清除所有缓存
    • 命令优先级: 传参 -a/--all 优先级大于指定和默认

V1.1.13 版本

  1. require 获取当前项目 package.json 打补丁;
  2. 优化 loading 工具函数;
  3. 依赖安装失败依赖唯一标识不会写入缓存,只有安装成功之后依赖标识才会写入缓存。

V1.1.14 版本

  1. 新增功能: 新增指令show
    • 使用: lxy-cli-npm-install show 查看当前管理的所有项目(即:查看所有缓存信息)
  2. 优化:优化缓存信息存储内容 - 新增项目所在位置可查 => 可通过 lxy-cli-npm-install show查看缓存的所有项目及项目所在位置