0.1.0 • Published 7 years ago
tu-cumple v0.1.0
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
- Install dependencies
npm init
- Add your tests and make your changes
- Verify tests pass
npm run test
- 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
0.1.0
7 years ago