birth.js

1.0.1Β β€’Β PublicΒ β€’Β Published

Birth.js

A Module For get Birth Information with Nodejs πŸŽ‚

License : MIT
Author : Aref Rasti

Installation

    npm install birth.js

example

    const { Birth } = require('birth.js');
    const BirthDay = new Birth('2003-12-8');

    console.log(`Date : ${BirthDay.BirthDate}`);
    console.log(BirthDay.getDays());   
    // Date : 2003-12-08
    // return 6511

document

## getDays
return the number of days from the birth date to now.

## getMonths
return the number of months from the birth date to now.

## getYears
return the number of years from the birth date to now.

## getWeeks
return the number of weeks from the birth date to now.

## getAge
return the age from the birth date to now.

## getHours 
return the number of hours from the birth date to now.

## getMinutes
return the number of minutes from the birth date to now.

## getSeconds
return the number of seconds from the birth date to now.

Good Luck πŸ€—

Readme

Keywords

Package Sidebar

Install

npm i birth.js

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

7.25 kB

Total Files

8

Last publish

Collaborators

  • arefrasti