0.1.0 • Published 7 years ago

tu-cumple v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Tu Cumple

A simple npm module example that tells you the day of the week for your next birthday.

Usage

  npm install tu-cumple
const miCumple = require('mi-cumple')

let erik = miCumple('1990-01-02')

console.log(`I am ${erik.getMyAge()} years old`)
console.log(`At 1990 I was ${erik.getMyAge('1990-01-02')}`)
console.log(`I was born on a ${erik.dayOfBirth()}`)
console.log(`My next birthday it's on a ${erik.nextBirthDay()}`)
console.log(`My next birthday it's on a ${erik.nextBirthDay()}`)

How to make a contribution

  1. Install dependencies
  npm init
  1. Add your tests and make your changes
  2. Verify tests pass
npm run test
  1. Make a pull request

TODOs

  • Add famous people that born the same day as you
  • Add how much time is left for your next birthday
  • Improve current test cases and add more
  • Move "how to make a contribution" to contribution.md file