1.0.0 • Published 6 years ago

count-it-down v1.0.0

Weekly downloads
72
License
MIT
Repository
github
Last release
6 years ago

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.

$ npm install count-it-down
$ # OR
$ yarn add count-it-down

Usage

import countItDown from 'count-it-down'
const weddingDate = new Date('01/26/2019')

countItDown(weddingDate, console.log)
// {days: 195, hours: 12, minutes: 4, seconds: 50}
// {days: 195, hours: 12, minutes: 4, seconds: 49}
// ...

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