# countup-timer-js

> CountUpTimerJS - RealTime CountUp Timer JavaScript Library

Latest version **1.1.6** (published 2016-07-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install countup-timer-js
pnpm add countup-timer-js
yarn add countup-timer-js
bun add countup-timer-js
```

## 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.1.6 |
| Published | 2016-07-24 |
| First published | 2016-07-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | daisuke.takayama |
| Maintainers | daisuke.takayama |

## Links

- npm: https://www.npmjs.com/package/countup-timer-js
- Repository: https://github.com/webcyou/countup-timer-js
- Homepage: https://github.com/webcyou/countup-timer-js#readme
- Issues: https://github.com/webcyou/countup-timer-js/issues
- npm.io page: https://npm.io/package/countup-timer-js

## Dependencies (2)

- [chai](https://npm.io/package/chai.md) ^3.5.0
- [power-assert](https://npm.io/package/power-assert.md) ^1.4.1

## Recent versions

- 1.1.6 (latest) — 2016-07-24
- 1.1.5 — 2016-07-24
- 1.1.4 — 2016-07-24
- 1.1.3 — 2016-07-24
- 1.1.2 — 2016-07-24
- 1.1.1 — 2016-07-24
- 1.1.0 — 2016-07-24
- 1.0.1 — 2016-07-23
- 1.0.0 — 2016-07-23

## README

# CountUpTimerJS
CountUpTimerJS - RealTime CountUp Timer JavaScript Library

### これは何？
カウントアップタイマー、JavaScriptライブラリです。

### demo
[デモページ](https://webcyou.github.io/countup_timer/)

###  Quick start

**Clone the repo:**
```
git clone git@github.com:webcyou/countup-timer-js.git
```

**Install with [Bower](http://bower.io):**
```
bower install countup-timer.js
```

**Install with [npm](https://www.npmjs.com):**

```
npm install countup-timer-js
```


### Basic Usage

```
<script src="countup_timer.js"></script>
```

### Basic Format
```
"hh:mm:ss"
```


### Start DataSet

```
new CountUpTimer("hh:mm:ss", callBack);
```


**example**

```
new CountUpTimer("12:11:2", function(times, parameters) {
    console.log(times);
});
```

**subscribe**

```
var timer = new CountUpTimer("hh:mm:ss");

timer.subscribe(function(times, parameters) {
  ...
});

```


### CallBack


```
new CountUpTimer(Times, function(times, parameters) {
  ...
});
```

**time**

times: string
```
"hh:mm:ss"
```

prams: Time

### CallBack Parameters Reference

| ParametersName | value         | Detail                | 
| --------------- |:---------------:| -------------------- |
| id | number | created date Id |
| splitTimes | string[] | [hours, minute, second] |
| H | number | hours |
| M | number | minute |
| S | number | minute |
| times | string | "hh:mm:ss" |
| isNextDay | boolean | To become true is the one time of 24:00 . |
| createdAt | string | Time that was created |

### Start develop
```
npm install
gulp 
```

### Start Test

**mocha**
```
gulp mocha
```

**mocha watch**
```
gulp mocha.watch
```


### Author
Daisuke Takayama
[Web帳](http://www.webcyou.com/)


### License
MIT

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