@pinoyfreecoder/display-age
v1.0.2
Published
This package will show the age based on birthday
Downloads
2
Readme
@pinoyfreecoder/display-age
A simple npm package to calculate and display age based on a provided birthday.
Installation
npm install @pinoyfreecoder/display-age
How to use
const calculateAge = require("@pinoyfreecoder/display-age");
const birthdayString = "1990-05-15";
const age = calculateAge(birthdayString);
console.log("Age:", age);
Replace 1990-05-15 with the actual birthday string you want to calculate the age for.