# nw-coundown

> javascript countdown module

Latest version **1.0.0** (published 2018-02-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install nw-coundown
pnpm add nw-coundown
yarn add nw-coundown
bun add nw-coundown
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-02-02 |
| First published | 2018-02-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | shenyuan |
| Maintainers | shenyuan |
| Keywords | javascript, countdown |

## Links

- npm: https://www.npmjs.com/package/nw-coundown
- Repository: https://github.com/shen1992/CountDown
- Homepage: https://github.com/shen1992/CountDown#readme
- Issues: https://github.com/shen1992/CountDown/issues
- npm.io page: https://npm.io/package/nw-coundown

## Recent versions

- 1.0.0 (latest) — 2018-02-02

## README

## 一个用js写的倒计时组件

#### 使用方法

- 把组件引入，传入参数

```
import CountDown from 'nw-countdown'

new CountDown({endTime: '2018/05/20 17:22:00', container: '.container', isMs: true})
``` 

#### API

##### 传入参数
- endTime(string or num):倒计时的结束时间
  + 支持字符串："2018/05/20 17:22:00"
  + 也支持num型毫秒格式：1589966520000
  
##### 可选参数
- container(selector):选择把组件append到哪个元素中，支持选择器，如".container","#containenr","body"
  + 如果不传，则默认append到body
  
- isMs(Boole): 是否展示分秒，默认为false

- callback(function): 倒计时结束之后的回调函数

---
_Source: https://npm.io/package/nw-coundown · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
