1.0.2 • Published 2 years ago
getagejs v1.0.2
getAge.js
Lightweight JavaScript code to get your age with your Birth date.
DEMO and GENERATOR
Installation
Use the package manager npm to install foobar.
npm i getagejs
Then...
import { getAge } from 'getage';
Usage
getAge(element, settings);
example :
getAge('#age', {
year: 2009,
month: 5,
day: 21
})
Settings
you must use object & provide all the settings to make it work, or error will show on your console
- year : your birth year.
- month : your birth month.
- day : your birth day.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.