bd-marrige-age-checker
v3.2.2
Published
This is a marrige age checker module for bangladeshi boys and girls
Downloads
13
Maintainers
Readme
Quick check marrige age with two parameter , Year and Gender For a Male when age are greater than 21 function permit to marrige succesfuly beside for a Female when age are greater than 18 year old function permit to marrgie succesfully . In this case this calculator check default For male and if you pass two parameters called year and gender function will succesfully.
Installation
Installation is done using the npm install command:
$ npm install bd-marrige-age-checker
Usage
import marrigeAgeCal from "bd-marrige-age-checker";
Then
console.log(marrigeAgeCal())
two parameter in function call year and gender
Example Code -
For Year Parameters
import marrigeAgeCal from "./bd-marrige-age-checker.js";
console.log(marrigeAgeCal(2006));
Result :
You are not ready to marrige , You are 18 Years old
For Year & Gender Parameters
import marrigeAgeCal from "./bd-marrige-age-checker.js";
console.log(marrigeAgeCal(2006,'Female'));
Result :
You are ready to marrige , You are 18 Years old