This package returns the current age depending on the birthdate you input.
Install the package:
npm install get-current-age
Import the package to your JavaScript file:
import age from "get-current-age";
Get age:
const day = 30,
month = 9,
year = 2007;
const myAge = age(day, month, year);
console.log("I am " + myAge + " years old");