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

intro-vue2

v0.1.3

Published

a vue2 plugin for intro

Readme

用户引导

一个 vue2 插件

#安装
npm install intro-vue2
<!-- 标记 -->
<div data-intro="1"></div>
//插件方式
import introVue2 from 'intro-vue2';

Vue.use(introVue2);


this.$intro({
    options: {
        domAttrFlag: "data-intro", //dom标识 用于寻找对应的step元素
        targetClickEnable: true, //目标区域是否可以点击 默认true(支持在step中配置当前指引)
        clickTargetNext: true, //点击目标区域自动执行下一步 默认true(支持在step中配置当前指引)
        scrollToTarget: true, //滚动到目标区域 默认true 不支持局部滚动
        tipCls: "", //自定义提示框样式
        showBtn: true, //是否显示按钮
        nextLabel: "下一步", //下一步按钮文案
        prevLable: "上一步", //上一步按钮文案
        skipLable: "跳过", //跳过按钮文案 最后一步之前都展示跳过
        exitLable: "退出", //退出按钮文案 退出只会在最后一步展示
        autoNext: true,//是否自动下一步
        autoNextTime: 5,//自动下一步时间(秒)
    },
    steps: [
        {
            step: "1", //
            tip: "点击这里1", //提示文案
            afterEnter(updateTip){
                updateTip('3','更改了第三步的提示')
            },
            //执行下一步之前拦截 必须调用next()才能执行下一步 或者next(step)跳到指定
            beforeNext(next) {
                next("2");
            }
        },
        {
            step: "2",
            tip: "点击这里2",
            afterEnter(updateTip){
                updateTip('3','更改了第三步的提示')
            },
        },
        {
            step: "3",
            tip: "点击这里3",
            targetClickEnable: false
        },
        {
            step: "4",
            tip: "点击这里4",
            clickTargetNext: false
        }
    ]
})

//直接引入
import {intro} from 'intro-vue2';

intro({...})

注意: 要在dom渲染之后调用 mounted nextTich