Age package provides functionality to generate a fake age value.
npm
npm install @fakerjs/age --save-dev yarn
yarn add @fakerjs/age -D importagefrom'@fakerjs/age';age();//=> 42age({type: 'child'});//=> 10// Allowed type: child, teen, adult, seniorRun tests
npm run test The MIT License (MIT) Copyright (c) Sergey Romanenko