项目作者: tiaanduplessis

项目描述 :
Get countdown to a date
高级语言: JavaScript
项目地址: git://github.com/tiaanduplessis/count-it-down.git
创建时间: 2018-07-14T10:10:09Z
项目社区:https://github.com/tiaanduplessis/count-it-down

开源协议:MIT License

下载


count-it-down

package version
package downloads
standard-readme compliant
package license
make a pull request

Get countdown to a date

Table of Contents

Install

This project uses node and npm.

  1. $ npm install count-it-down
  2. $ # OR
  3. $ yarn add count-it-down

Usage

  1. import countItDown from 'count-it-down'
  2. const weddingDate = new Date('01/26/2019')
  3. countItDown(weddingDate, console.log)
  4. // {days: 195, hours: 12, minutes: 4, seconds: 50}
  5. // {days: 195, hours: 12, minutes: 4, seconds: 49}
  6. // ...

Contribute

  1. Fork it and create your feature branch: git checkout -b my-new-feature
  2. Commit your changes: git commit -am ‘Add some feature’
  3. Push to the branch: git push origin my-new-feature
  4. Submit a pull request

License

MIT