Skip to content

PinoyFreeCoder/display-age

Repository files navigation

@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.