birthday-calculator

1.0.0 • Public • Published

Birthday Calculator

This tiny module provides some utils methods referenced to birthday dates.

Installation

$ npm install birthday-calculator

Usage

Example app.js:

// Load module
const calculator = require('birthday-calculator');
 
// Instantiate
const date = new Date('1990,10,01');
const result = calculator.getDayWhenBorn(date);
console.log(result);

Coming features

  • Calculate remaining days until the birthday
  • Calculate how many years from the date provided

Package Sidebar

Install

npm i birthday-calculator

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

1.67 kB

Total Files

4

Last publish

Collaborators

  • jbrizio