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 🙏

© 2025 – Pkg Stats / Ryan Hefner

dl-vue-directives

v1.0.1

Published

vue plugin

Readme

dl-directives

介绍

dl-directives是一个vue自定义指令库,上传到npm上供大家下载使用。 下载命令:npm i dl-vue-directives 仓库地址:https://gitee.com/w913026/dl-directives.git

安装教程

  1. npm i dl-vue-directives
  2. 在main.js中: import { directive } from 'dl-vue-directives' Vue.use(directive)
  3. 配置一些配置项

使用说明

  1. v-default指令,用于数据展示兜底,使用方法: 参数说明:1.value,可选,数据为undefined, null, 'NaN', ''时展示的值;不填时默认展示"--"。
  2. v-dialog指令,用于弹窗内input框输入时会被软键盘挡住的情况,使用方法: 参数说明:1.value,必填,需要整体往上弹的元素(例如弹窗内容的父元素)的选择器,例如:'#id','.class'。
  3. v-download指令,用于下载文件,目前支持pdf,img,支持下载链接和base64,使用方法: 1.下载链接:
  4. v-updown指令,用于数据涨跌展示,使用方法: 1.在main.js里设置涨跌颜色值,不设置默认为defaultColor: '#333333',downColor: '#FF3E4C',upColor: '#5BAE00' window.upDownColor = ({ defaultColor: 'xxx', downColor: 'xxx', upColor: 'xxx' }) 2.在需要的元素上添加v-updown指令