Skip to content

Age package provides functionality to generate a fake age value.

License

Notifications You must be signed in to change notification settings

faker-javascript/age

Repository files navigation

Age

Age package provides functionality to generate a fake age value.

Version node-current License

Install

npm

npm install @fakerjs/age --save-dev

yarn

yarn add @fakerjs/age -D

Usage

import age from '@fakerjs/age';

age();
//=> 42

age({type: 'child'});
//=> 10

// Allowed type: child, teen, adult, senior

Tests

Run tests

npm run test

License

The MIT License (MIT) Copyright (c) Sergey Romanenko