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

hearhearuz

v1.0.5

Published

## Nuxt 模块库

Readme

uzzuz

Nuxt 模块库

https://github.com/topics/nuxt-module

i18n 国际化

https://域名/zh 自动转到中文站点 https://域名/en 自动转到英文站点

CSS 库

在线扒网站

https://bazhan.wang/

特效库

https://www.delac.io/WOW/docs.html 会自动依赖 animate.css

映射

Hostsman www.door.com

服务

live-server --open=/ --port=8001
live-server --open=/ --port=9999

VUEX

import { mapGetters } from 'vuex'

// 使用对象展开运算符将 getter 混入 computed 对象中  并设置别名
...mapGetters({
  // 把 `this.doneCount` 映射为 `this.$store.getters.doneTodosCount`
  getImage: 'env/getImage',
}),

代码片段

预置字段

// ============================== 标准组件预置字段 Start ==============================
componentReady: false,
params: {}, // 组件参数
channelList: [], // 频道列表
currentChannelName: '', // 当前频道名
// ==============================  标准组件预置字段 End  ==============================

Nuxt-Link

<nuxt-link
  v-for="categoryItem in channelItem.categoryList"
  :key="$options.name + '_' + categoryItem.id"
  :to="{
    path: componentUtil.generateHref($store, channelItem.name),
    query: { categoryId: categoryItem.id },
  }"
  >{{ categoryItem.title }}</nuxt-link
>

json 字符串数组

"channelList": {
  "title": "显示频道列表",
  "type": "array",
  "default": [
    "about"
  ],
  "items": {
    "type": "string"
  },
  "uniqueItems": false
}

json 对象数组

"cardList": {
  "type": "array",
  "title": "一个对象数组",
  "items": {
    "type": "object",
    "properties": {
      "name": {
        "title": "Thing",
        "type": "string",
        "default": "Default na"
      }
    }
  }
},

html 换行

white-space: pre-line;

i18n 国际化

<i18n src="./lan.json"></i18n>
{{ $t('fax') }}

key 前缀

$options.name + '_' +

computeImage

return {
  background:
    'url(' +
    this.componentUtil.static(this.params.imageBackground) +
    ') no-repeat center',
}