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

vue2-progress

v1.0.0

Published

<p align="center"> <img src='http://img.souche.com/f2e/a1f933d9f7dea816176e40070f3738f2.png' width='300' alt="vue-meta"> </div> <h5 align="center"> 基于Vue 2.0 的页面加载进度条. </h5>

Readme

Vue.use(VueProgress); // 注册实例

let instance = this.$vueProgress(); // 初始化vueProgress

instance.start(); // 开始显示

setTimeout(function () {
    instance.done(); // 结束
}, 3000);

description

这是一种类似于Google, YouTube的ajax加载进度条插件,基于vue 2.0版本之上,可以自定义插件样式和效果。

Installation

Yarn

$ yarn add vue-progress

NPM

$ npm install vue-progress --save

Usage

1. 注册

import Vue from 'vue'
import VueProgress from 'vue-progress'

Vue.use(VueProgress)

2. 快速使用

let instance = this.$vueProgress(); // 初始化vueProgress

instance.start(); // 开始显示
instance.done(); // 结束

3. 设置初始进度

instance.set(0.0);     // Sorta same as .start()
instance.set(0.4);
instance.set(1.0);     // Sorta same as .done()

Configuration

初始化vueProgress 的时候,可以选择性传入参数进行控制

color

设置进度条颜色,默认是 blue

this.$vueProgress({color: '#ddd'});

speed

控制进度条速度,默认是 5

this.$vueProgress({speed: 10});

percentNum

进度条每一步的跨度,取值0-1之前的小数。默认是0-1之间的随机数

this.$vueProgress({percentNum: 0.1});

easing

右侧loading图标动画的贝塞尔曲线,默认 'linear'

this.$vueProgress({easing: 'ease'});

showSpinner

是否展示右侧loading动画,默认 true

this.$vueProgress({showSpinner: false});

Examples

To run the examples; clone this repository & run npm install in the root directory, and then run npm run dev. Head to http://localhost:8080.