Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.17 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.17 KB

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