count-it-down
v1.0.0
Published
Get countdown to a date
Downloads
737
Maintainers
Readme
count-it-down
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
- Fork it and create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request
License
MIT