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

vue-irrigation-tools

v0.1.0

Published

## Project setup ``` npm install ```

Readme

legend-dynamic

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

instructions

参数

legendAbbr boolean //是否需要缩略图标 imgAbbr string //缩略图标图片src legendWidth number //整个图例宽度 liWidth number //每项图例的宽度 可以通过调节legendWidth与liWidth来控制每行多少个图例 legendBorder boolean //是否需要图例外部的边框样式 legendTool boolean //是否需要标题栏 legendTitle string //标题名称 closeBtn boolean //是否需要关闭按钮 legendList array //图标数组,提供src(string),color(string),value(string)作为此对象的key使用(可同时全部使用),决定每项图例左侧类型是图片/色块/文字,其中当某一对象存在src时,额外提供unchecked(boolen 是否选中图片,默认为true,图片路径为src,切换时修改为false,图片路径为unCheckedSrc),uncheckedSrc(string)两个key,实现点击图片切换选中与非选中的图片。

插槽

left 在图例外层提供插槽 content 在图例标题栏与内容直接提供插槽

事件

closeLegend 关闭图标点击事件 legendAbbrClick 缩略图图标点击事件 liClick 单项图例点击事件