count-it-down

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i count-it-down

Weekly Downloads

277

Version

1.0.0

License

MIT

Unpacked Size

10.7 kB

Total Files

16

Last publish

Collaborators

  • tiaanduplessis