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

countdown-pad

v1.0.2

Published

**This is a UI component made for Wechat miniprogram**

Readme

Countdown Pad

倒计时面板

This is a UI component made for Wechat miniprogram

这是一个微信小程序使用的 UI 组件

Brief

简介

Demo

This countdown pad can automatically calculate and disply time as seted. If needed, time can count down automatically.

All time change has a scroll animation.

本倒计时面板支持根据设置的时长,自动换算并展示对应的时间,还支持数字自动减小。

所有数字变化都自带滚动动画。

Install

安装

Add line bellow to the package.json in your project directory:

在工程文件夹下的 package.json 文件中添加如下代码:

{
  ...
  "dependencies": {
    ...
    "countdown-pad": "^1.0.2",
    ...
  },
  ...
}

Then follow the instruction in this document.

然后按照如下文档操作。

Use

使用

Add lines bellow to JSON file (like pageOrComponentName.json) of the page or component you want to use this component.

在你希望使用本组件的页面或组件的 JSON 配置文件 pageOrComponentName.json 中添加下面的代码:

{
  ...
  "usingComponents": {
    "countdown-pad": "countdown-pad",
  }
  ...
}

Add line as follow to WXML file like pageOrComponentName.wxml to add component to display:

在你希望使用本组件的页面或组件的 WXML 文件,例如 pageOrComponentName.wxml 添加如下代码:

<countdown-pad time='1434000' autoCount/>

Parameters

参数说明

  • time: Number

default value: 0

Time left to disply in ms.

用于展示的剩余时间(单位:毫秒)

  • autoCount: Boolean

default value: false

if autoCount is set as true, the countdown pad will automatically count down from the time value.

Otherwise you should set the time value by yourself once the time change, value change is always with an animation.

如果将 autoCount 设置为 true, 本组件会自动进行倒计时。否则,本组组件不会自动倒计时,这时可以定期设置新的时间来变更显示,所有时间变更都会有动画。