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 🙏

© 2024 – Pkg Stats / Ryan Hefner

npx-cache

v1.0.2

Published

npx-cache helper

Downloads

3

Readme

npx-cache

有时候真的对 npx-cache 有点忍无可忍。现在很多库的脚手架都推荐用 npx(官方文档还再三强调不要用 npm global),可是这 npx cache 模块的管理是很头疼的事情。

虽然有一个 clear-npx-cache 的库,但他只管把本机的所有 npx cache 给你全清理了。

还是希望能清楚知道本机的 npx cache 目录(包括方便打开),以及现在到底装了哪些库(哪些版本)。

使用说明

// 显示本机 npx cache 的目录所在
npx npx-cache dir

// 列出本机 npx cache 所有 modules 及其版本号(以及对应的目录)
npx npx-cache list

// 根据关键词搜索本机的 npx cache 的 modules(不需要输入完整的 module name)
// search 后面是一个数组,多个用空格分隔
npx npx-cache search react webpack native vite

// 清空本机所有的 npx cache modules
npx npx-cache clear

// 指定名称删除 npx cache module,支持多个名字
// remove 后面是一个数组,多个空格分隔
npx npx-cache remove cowsay create-next-app