Age calculator
Installation
npm i get-age-years
Usage
const age = require("get-age-years");
console.log(age.getAge(YYYYMMDD));
Example
const age = require("get-age-years");
console.log(age.getAge(2003/09/29));
OUTPUT: 17
npm i get-age-years
const age = require("get-age-years");
console.log(age.getAge(YYYYMMDD));
const age = require("get-age-years");
console.log(age.getAge(2003/09/29));
OUTPUT: 17
npm i get-age-years
18
1.1.1
ISC
969 B
3