@pinoyfreecoder/display-age

1.0.2 • Public • Published

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

/@pinoyfreecoder/display-age/

    Package Sidebar

    Install

    npm i @pinoyfreecoder/display-age

    Weekly Downloads

    2

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    4.16 kB

    Total Files

    9

    Last publish

    Collaborators

    • pinoyfreecoder